Class: Teapot::Metadata

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

Overview

This is a very basic class for accessing metadata from a repository. In the future I expect this will be fleshed out a bit more.

Defined Under Namespace

Classes: Section

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Metadata

Returns a new instance of Metadata.



34
35
36
# File 'lib/teapot/metadata.rb', line 34

def initialize(context)
	@context = context
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object



38
39
40
# File 'lib/teapot/metadata.rb', line 38

def method_missing(name)
	Section.new(name)
end