Class: Xi::StepSequencer
Instance Attribute Summary collapse
-
#string ⇒ Object
readonly
Returns the value of attribute string.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(string, *values) ⇒ StepSequencer
constructor
A new instance of StepSequencer.
- #inspect ⇒ Object
- #p(*args, **metadata) ⇒ Object
Constructor Details
#initialize(string, *values) ⇒ StepSequencer
Returns a new instance of StepSequencer.
4 5 6 7 |
# File 'lib/xi/step_sequencer.rb', line 4 def initialize(string, *values) @string = string @values = values end |
Instance Attribute Details
#string ⇒ Object (readonly)
Returns the value of attribute string.
2 3 4 |
# File 'lib/xi/step_sequencer.rb', line 2 def string @string end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
2 3 4 |
# File 'lib/xi/step_sequencer.rb', line 2 def values @values end |
Instance Method Details
#inspect ⇒ Object
13 14 15 16 |
# File 'lib/xi/step_sequencer.rb', line 13 def inspect "s(#{@string.inspect}" \ "#{", #{@values.map(&:inspect).join(', ')}" unless @values.empty?})" end |
#p(*args, **metadata) ⇒ Object
9 10 11 |
# File 'lib/xi/step_sequencer.rb', line 9 def p(*args, **) build_pattern(**) end |