Class: Delorean::SubNode
- Defined in:
- lib/delorean/nodes.rb
Instance Method Summary collapse
Methods inherited from BaseNode
Instance Method Details
#check(context) ⇒ Object
89 90 91 92 |
# File 'lib/delorean/nodes.rb', line 89 def check(context, *) mname = mod.m.text_value if defined?(mod.m) context.parse_define_node(n.text_value, p.text_value, mname) end |
#rewrite(context) ⇒ Object
94 95 96 97 98 99 100 |
# File 'lib/delorean/nodes.rb', line 94 def rewrite(context) mname = mod.m.text_value if defined?(mod.m) sname = context.super_name(p.text_value, mname) # A sub-node (derived node) is just a subclass. def_class(context, sname) end |