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

- (Value) controller



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

def controller
  Value.new(__controller.wrap)
end

- (MusicElements::ControllerChange) to_stretto(pattern)



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

- (Value) value



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

def value
  Value.new(__value.wrap)
end