Class: Faalis::Dashboard::Models::Menu

Inherits:
Item
  • Object
show all
Defined in:
lib/faalis/dashboard/models/sidebar.rb

Instance Attribute Summary

Attributes inherited from Item

#icon, #model, #title, #url

Instance Method Summary (collapse)

Methods inherited from Item

#extract_options, #initialize, #visible?

Constructor Details

This class inherits a constructor from Faalis::Dashboard::Models::Item

Instance Method Details

- (Object) add_child(child)



43
44
45
46
# File 'lib/faalis/dashboard/models/sidebar.rb', line 43

def add_child(child)
  @children ||= []
  @children << child
end

- (Object) children



39
40
41
# File 'lib/faalis/dashboard/models/sidebar.rb', line 39

def children
  @children || []
end