Module: Generator
- Included in:
- NestedList::Task
- Defined in:
- lib/nested_list.rb
Defined Under Namespace
Classes: NestedList
Instance Method Summary collapse
-
#nested_options_example ⇒ Object
Example.
-
#nested_options_example_ru ⇒ Object
Support other language Example.
Instance Method Details
#nested_options_example ⇒ Object
Example
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/nested_list.rb', line 69 def @nested_names_arr = [] @nested_names_arr << {name: "All Categories", id: 'all'} @nested_names_arr << {name: "Audio>Accessorize>Smile", id: '566767'} @nested_names_arr << {name: "Audio>Accessorize>Pillow", id: '45255'} @nested_names_arr << {name: "Audio>DVD", id: '234245'} @nested_names_arr << {name: "Baby", id: '44245tr5'} nested_list = NestedList.new(@nested_names_arr) nested_list. end |
#nested_options_example_ru ⇒ Object
Support other language Example
83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/nested_list.rb', line 83 def @nested_names_arr = [] @nested_names_arr << {name: "Все категории", id: 'all'} @nested_names_arr << {name: "Аудио>Аксессуары>Smile", id: '566767'} @nested_names_arr << {name: "Аудио>Аксессуары>Подушка", id: '45255'} @nested_names_arr << {name: "Аудио>DVD", id: '234245'} @nested_names_arr << {name: "Товары для детей", id: '44245tr5'} nested_list = NestedList.new(@nested_names_arr) nested_list. end |