Class: Tatty::Atlas
- Inherits:
-
Object
- Object
- Tatty::Atlas
- Defined in:
- lib/tatty/atlas.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(filepath) ⇒ Atlas
constructor
A new instance of Atlas.
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.(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 |