Class: Traktor::NML::Cue
- Inherits:
-
Object
- Object
- Traktor::NML::Cue
- Defined in:
- lib/traktor/nml/cue.rb
Instance Attribute Summary collapse
-
#hotcue ⇒ Object
readonly
Returns the value of attribute hotcue.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#repeats ⇒ Object
readonly
Returns the value of attribute repeats.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(info) ⇒ Cue
constructor
A new instance of Cue.
Constructor Details
#initialize(info) ⇒ Cue
Returns a new instance of Cue.
6 7 8 9 10 11 12 13 |
# File 'lib/traktor/nml/cue.rb', line 6 def initialize(info) @name = info[:name] @type = info[:type] @start = info[:start] @length = info[:length] @repeats = info[:repeats] @hotcue = info[:hotcue] end |
Instance Attribute Details
#hotcue ⇒ Object (readonly)
Returns the value of attribute hotcue.
4 5 6 |
# File 'lib/traktor/nml/cue.rb', line 4 def hotcue @hotcue end |
#length ⇒ Object (readonly)
Returns the value of attribute length.
4 5 6 |
# File 'lib/traktor/nml/cue.rb', line 4 def length @length end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/traktor/nml/cue.rb', line 4 def name @name end |
#repeats ⇒ Object (readonly)
Returns the value of attribute repeats.
4 5 6 |
# File 'lib/traktor/nml/cue.rb', line 4 def repeats @repeats end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
4 5 6 |
# File 'lib/traktor/nml/cue.rb', line 4 def start @start end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/traktor/nml/cue.rb', line 4 def type @type end |
Instance Method Details
#[](key) ⇒ Object
15 16 17 |
# File 'lib/traktor/nml/cue.rb', line 15 def [](key) return self.instance_variable_get("@#{key.to_s}") end |