Class: EacRailsUtils::MenusHelper::DataBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/eac_rails_utils/menus_helper/data_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(view) ⇒ DataBuilder

Returns a new instance of DataBuilder.


6
7
8
# File 'app/helpers/eac_rails_utils/menus_helper/data_builder.rb', line 6

def initialize(view)
  @view = view
end

Instance Method Details

#build(entries) ⇒ Object


10
11
12
# File 'app/helpers/eac_rails_utils/menus_helper/data_builder.rb', line 10

def build(entries)
  build_entries(entries, 0)
end