Class: Tatty::Atlas

Inherits:
Object
  • Object
show all
Defined in:
lib/tatty/atlas.rb

Instance Method Summary collapse

Constructor Details

#initialize(filepath) ⇒ Atlas

Returns a new instance of Atlas.



5
6
7
8
9
# File 'lib/tatty/atlas.rb', line 5

def initialize(filepath)
  @filepath = File.expand_path(filepath)
  @sheet = {}
  parse_data
end

Instance Method Details

#[](name) ⇒ Object



11
12
13
# File 'lib/tatty/atlas.rb', line 11

def [](name)
  @sheet[name.to_sym]
end