Class: PersonifyLanguage::Key
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- PersonifyLanguage::Key
- Defined in:
- lib/personify/parser/personify_node_classes.rb
Instance Method Summary collapse
Instance Method Details
#eval(env) ⇒ Object
41 42 43 44 |
# File 'lib/personify/parser/personify_node_classes.rb', line 41 def eval(env) keys = self.to_s.split(".") keys.inject(env){|acc,k| acc && acc[k] } end |
#name ⇒ Object
46 47 48 |
# File 'lib/personify/parser/personify_node_classes.rb', line 46 def name text_value end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/personify/parser/personify_node_classes.rb', line 50 def to_s self.name.downcase.to_s end |