Class: Brigit::ConfigParser::Section
- Inherits:
-
Object
- Object
- Brigit::ConfigParser::Section
- Defined in:
- lib/brigit/config_parser.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Section
constructor
A new instance of Section.
- #method_missing(*args, &block) ⇒ Object
- #options ⇒ Object
Constructor Details
#initialize(name) ⇒ Section
Returns a new instance of Section.
10 11 12 |
# File 'lib/brigit/config_parser.rb', line 10 def initialize(name) @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
18 19 20 |
# File 'lib/brigit/config_parser.rb', line 18 def method_missing(*args, &block) .__send__(*args, &block) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/brigit/config_parser.rb', line 9 def name @name end |
Instance Method Details
#options ⇒ Object
14 15 16 |
# File 'lib/brigit/config_parser.rb', line 14 def @options ||= {} end |