Class: Teapot::Metadata::Section
- Inherits:
-
Object
- Object
- Teapot::Metadata::Section
- Defined in:
- lib/teapot/metadata.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Section
constructor
A new instance of Section.
- #method_missing(parameter_name) ⇒ Object
Constructor Details
#initialize(name) ⇒ Section
Returns a new instance of Section.
25 26 27 |
# File 'lib/teapot/metadata.rb', line 25 def initialize(name) @name = name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(parameter_name) ⇒ Object
29 30 31 |
# File 'lib/teapot/metadata.rb', line 29 def method_missing(parameter_name) `git config #{@name}.#{parameter_name}`.chomp! end |