Class: Ruby::Node
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#evaluate_source_name(visitor) ⇒ Object
11 12 13 |
# File 'lib/linqr.rb', line 11 def evaluate_source_name(visitor) visitor.send("source_name_#{self.class.name.split('::')[1].downcase}".to_sym, self) end |
#to_sym ⇒ Object
14 15 16 |
# File 'lib/linqr.rb', line 14 def to_sym to_ruby.to_sym end |
#visit(visitor) ⇒ Object
7 8 9 10 |
# File 'lib/linqr.rb', line 7 def visit(visitor) class_name=self.class.name.split('::').size == 2 ? self.class.name.split('::')[1]: self.class.name visitor.send("visit_#{class_name.downcase}".to_sym, self) end |