Class: FlameChannelParser::Segments::ConstantPrepolate
- Inherits:
-
LinearSegment
- Object
- ConstantSegment
- LinearSegment
- FlameChannelParser::Segments::ConstantPrepolate
- Defined in:
- lib/segments.rb
Overview
This segment does prepolation of a constant value
Constant Summary
Constants inherited from ConstantSegment
FlameChannelParser::Segments::ConstantSegment::NEG_INF, FlameChannelParser::Segments::ConstantSegment::POS_INF
Instance Attribute Summary
Attributes inherited from ConstantSegment
Instance Method Summary collapse
-
#initialize(upto_frame, base_value) ⇒ ConstantPrepolate
constructor
:nodoc:.
- #value_at(frame) ⇒ Object
Methods inherited from ConstantSegment
Constructor Details
#initialize(upto_frame, base_value) ⇒ ConstantPrepolate
:nodoc:
187 188 189 190 191 |
# File 'lib/segments.rb', line 187 def initialize(upto_frame, base_value) @value = base_value @end_frame = upto_frame @start_frame = NEG_INF end |
Instance Method Details
#value_at(frame) ⇒ Object
193 194 195 |
# File 'lib/segments.rb', line 193 def value_at(frame) @value end |