Class: Promethee::Data::Master
- Inherits:
-
Promethee::Data
- Object
- Promethee::Data
- Promethee::Data::Master
- Defined in:
- lib/promethee/data/master.rb
Instance Method Summary collapse
- #flat ⇒ Object
-
#initialize(data) ⇒ Master
constructor
A new instance of Master.
Methods inherited from Promethee::Data
#[], #data, #include?, #to_json
Constructor Details
#initialize(data) ⇒ Master
Returns a new instance of Master.
2 3 4 5 |
# File 'lib/promethee/data/master.rb', line 2 def initialize(data) super data fix_master_integrity end |
Instance Method Details
#flat ⇒ Object
7 8 9 |
# File 'lib/promethee/data/master.rb', line 7 def flat flatten_components @data end |