Class: Rabbit::Command::RabbitSlide::IntegerMapper
- Inherits:
-
Object
- Object
- Rabbit::Command::RabbitSlide::IntegerMapper
show all
- Defined in:
- lib/rabbit/command/rabbit-slide.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of IntegerMapper.
346
347
348
|
# File 'lib/rabbit/command/rabbit-slide.rb', line 346
def initialize(data)
@data = data
end
|
Instance Method Details
#apply(entry) ⇒ Object
354
355
356
|
# File 'lib/rabbit/command/rabbit-slide.rb', line 354
def apply(entry)
apply_value(entry.value_as_int)
end
|
#attach(entry) ⇒ Object
350
351
352
|
# File 'lib/rabbit/command/rabbit-slide.rb', line 350
def attach(entry)
entry.value = value if value
end
|