Class: FlameChannelParser::FramecurveWriters::Base::KeyWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/framecurve_writers/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeKeyWriter

Returns a new instance of KeyWriter.



5
6
7
# File 'lib/framecurve_writers/base.rb', line 5

def initialize
  @keys = []
end

Instance Attribute Details

#keysObject (readonly)

Returns the value of attribute keys.



4
5
6
# File 'lib/framecurve_writers/base.rb', line 4

def keys
  @keys
end

Instance Method Details

#key(at, value) ⇒ Object



9
10
11
# File 'lib/framecurve_writers/base.rb', line 9

def key(at, value)
  @keys.push([at.to_i,value.to_f])
end