Class: WipeOut::AttributeStrategies::ConstValue

Inherits:
Object
  • Object
show all
Defined in:
lib/wipe_out/attribute_strategies/const_value.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ConstValue

Returns a new instance of ConstValue.



4
5
6
# File 'lib/wipe_out/attribute_strategies/const_value.rb', line 4

def initialize(value)
  @value = value
end

Instance Method Details

#callObject



8
9
10
# File 'lib/wipe_out/attribute_strategies/const_value.rb', line 8

def call(*)
  @value
end