Class: Pakyow::Presenter::Attributes::Attribute
- Inherits:
-
Object
- Object
- Pakyow::Presenter::Attributes::Attribute
- Defined in:
- lib/pakyow/presenter/attributes/attribute.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Attribute
constructor
A new instance of Attribute.
- #initialize_copy(_) ⇒ Object
Constructor Details
#initialize(value) ⇒ Attribute
Returns a new instance of Attribute.
7 8 9 |
# File 'lib/pakyow/presenter/attributes/attribute.rb', line 7 def initialize(value) @value = value end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/pakyow/presenter/attributes/attribute.rb', line 15 def ==(other) @value == other end |
#initialize_copy(_) ⇒ Object
11 12 13 |
# File 'lib/pakyow/presenter/attributes/attribute.rb', line 11 def initialize_copy(_) @value = @value.dup end |