Class: Teapot::Metadata::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/teapot/metadata.rb

Instance Method Summary collapse

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