Class: Registry

Inherits:
Object
  • Object
show all
Defined in:
lib/csv2hash/registry.rb

Instance Method Summary (collapse)

Constructor Details

- (Registry) initialize

Returns a new instance of Registry



2
3
4
# File 'lib/csv2hash/registry.rb', line 2

def initialize
  @definitions = Hash.new
end

Instance Method Details

- (Object) [](name)



6
7
8
# File 'lib/csv2hash/registry.rb', line 6

def [] name
  @definitions[name]
end

- (Object) []=(name, definition)



10
11
12
# File 'lib/csv2hash/registry.rb', line 10

def []= name, definition
  @definitions[name] = definition
end