Module: Musa::Neumalang::Neumalang::Parser::Event Private
- Defined in:
- lib/musa-dsl/neumalang/neumalang.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Semantic action for event notation.
Transforms event calls like "event_name(params)" or "event_name(key: value)".
Events can trigger external actions during playback.
Instance Method Summary collapse
-
#value ⇒ Hash
private
Builds event structure with name and parameters.
Instance Method Details
#value ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Builds event structure with name and parameters.
308 309 310 311 312 |
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 308 def value { kind: :event, event: capture(:name).value.to_sym }.merge(capture(:parameters) ? capture(:parameters).value : {}).extend Musa::Neumas::Neuma end |