Class: ActionLinkSeparator

Inherits:
Object show all
Defined in:
lib/active_scaffold/data_structures/action_link_separator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(weight) ⇒ ActionLinkSeparator

Returns a new instance of ActionLinkSeparator.



2
3
4
# File 'lib/active_scaffold/data_structures/action_link_separator.rb', line 2

def initialize(weight)
  @weight = weight
end

Instance Attribute Details

#weightObject (readonly)

Returns the value of attribute weight.



6
7
8
# File 'lib/active_scaffold/data_structures/action_link_separator.rb', line 6

def weight
  @weight
end

Instance Method Details

#==(other) ⇒ Object



8
9
10
# File 'lib/active_scaffold/data_structures/action_link_separator.rb', line 8

def ==(other)
  other == :separator
end

#name_to_cacheObject

:nodoc:



12
# File 'lib/active_scaffold/data_structures/action_link_separator.rb', line 12

def name_to_cache; end