Class: PrisonParser::Models::Base

Inherits:
Node
  • Object
show all
Defined in:
lib/prison_parser/models/base.rb

Direct Known Subclasses

Finance

Instance Attribute Summary

Attributes inherited from Node

#allow_inline, #label, #nodes, #properties

Instance Method Summary collapse

Methods inherited from Node

#add_property, #allow_inline?, #create_node, #finished_reading_node, #inspect, #method_missing, #write_nodes, #write_properties

Constructor Details

#initializeBase

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