Class: PrisonParser::Models::Base
- Defined in:
- lib/prison_parser/models/base.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Node
#allow_inline, #label, #nodes, #properties
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Methods inherited from Node
#add_property, #allow_inline?, #create_node, #finished_reading_node, #inspect, #method_missing, #write_nodes, #write_properties
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 |
# File 'lib/prison_parser/models/base.rb', line 4 def initialize class_name = self.class.name label = class_name[(class_name.rindex("::") + 2)..-1] super(label) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PrisonParser::Node