Class: Stretto::Tokens::ControllerChangeToken

Inherits:
HashToken
  • Object
show all
Defined in:
lib/stretto/grammar/tokens/controller_change_token.rb

Overview

Token result from parsing a controller change

Instance Method Summary collapse

Methods inherited from HashToken

#[]

Instance Method Details

#controllerValue

Returns:



15
16
17
# File 'lib/stretto/grammar/tokens/controller_change_token.rb', line 15

def controller
  Value.new(__controller.wrap)
end

#to_stretto(pattern) ⇒ MusicElements::ControllerChange



10
11
12
# File 'lib/stretto/grammar/tokens/controller_change_token.rb', line 10

def to_stretto(pattern)
  Stretto::MusicElements::ControllerChange.new(self, pattern)
end

#valueValue

Returns:



20
21
22
# File 'lib/stretto/grammar/tokens/controller_change_token.rb', line 20

def value
  Value.new(__value.wrap)
end