class Yadriggy::Name
Abstract class.
Attributes
column[R]
@return [Integer] the column.
line_no[R]
@return [Integer] the line number.
name[R]
@return [String] the name.
Public Class Methods
new(sexp)
click to toggle source
# File lib/yadriggy/ast.rb, line 92 def initialize(sexp) @name = sexp[1] @line_no = sexp[2][0].to_i @column = sexp[2][1].to_i end
Public Instance Methods
to_sym()
click to toggle source
Converts the name to a symbol @return [Symbol] the converted symbol.
# File lib/yadriggy/ast.rb, line 87 def to_sym @name.to_sym end