Class: Pakyow::Presenter::Attributes::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/pakyow/presenter/attributes/attribute.rb

Direct Known Subclasses

Hash, Set, String

Instance Method Summary collapse

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