Class: FlameChannelParser::Segments::ConstantPrepolate

Inherits:
LinearSegment show all
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

#end_frame, #start_frame

Instance Method Summary collapse

Methods inherited from ConstantSegment

#defines?

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