Class: DataStructure
- Inherits:
-
Object
- Object
- DataStructure
- Defined in:
- lib/pokotarou/data_structure.rb
Class Method Summary collapse
Class Method Details
.gen(data) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/pokotarou/data_structure.rb', line 3 def gen data execute_template_option_setting(data) # return data structure bellow # [{ block_name => { model_name => { column_configration }}}, ...] data.reduce(Hash.new) do |acc, r| if is_dush?(r.first.to_s) acc[r.first] = r.second else set_reshape_data_to_acc(acc, r) end acc end end |