Class: TMBundle::Menu::Separator
Instance Attribute Summary
Attributes inherited from Item
#exclude, #items, #name, #order, #parent, #uuid
Instance Method Summary collapse
- #eql? ⇒ Boolean
-
#initialize(uuid, order, options = {}) ⇒ Separator
constructor
A new instance of Separator.
- #inspect ⇒ Object
- #separator? ⇒ Boolean
Methods inherited from Item
#checkout, #name?, #process_items, #root?, #to_s
Constructor Details
#initialize(uuid, order, options = {}) ⇒ Separator
Returns a new instance of Separator.
53 54 55 56 57 58 59 |
# File 'lib/tm_bundle/item.rb', line 53 def initialize(uuid, order, = {}) @exclude = false self.uuid = uuid self.name = uuid self.order = order self.parent = [:parent] end |
Instance Method Details
#eql? ⇒ Boolean
61 62 63 |
# File 'lib/tm_bundle/item.rb', line 61 def eql? order == order && parent == parent end |
#inspect ⇒ Object
49 50 51 |
# File 'lib/tm_bundle/item.rb', line 49 def inspect "#{order}> — #{name}" end |
#separator? ⇒ Boolean
65 |
# File 'lib/tm_bundle/item.rb', line 65 def separator?; true end |