Sha256: f0cdf670d6868c7805ff90f9bd3eabbf783a22511d1772527ba51b0fff43cfe8

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

module Traktor
  module NML
    class Cue
      attr_reader :name, :type, :start, :length, :repeats, :hotcue

      def initialize(info)
        @name    = info[:name]
        @type    = info[:type]
        @start   = info[:start]
        @length  = info[:length]
        @repeats = info[:repeats]
        @hotcue  = info[:hotcue]
      end

      def [](key)
        return self.instance_variable_get("@#{key.to_s}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
traktor-nml-0.3.1 lib/traktor/nml/cue.rb
traktor-nml-0.3.0 lib/traktor/nml/cue.rb