Class: FlameChannelParser::FramecurveWriters::Base::KeyWriter
- Inherits:
-
Object
- Object
- FlameChannelParser::FramecurveWriters::Base::KeyWriter
- Defined in:
- lib/framecurve_writers/base.rb
Instance Attribute Summary collapse
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
Instance Method Summary collapse
-
#initialize ⇒ KeyWriter
constructor
A new instance of KeyWriter.
- #key(at, value) ⇒ Object
Constructor Details
#initialize ⇒ KeyWriter
Returns a new instance of KeyWriter.
5 6 7 |
# File 'lib/framecurve_writers/base.rb', line 5 def initialize @keys = [] end |
Instance Attribute Details
#keys ⇒ Object (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 |