Module: Musa::Neumalang::Neumalang::Parser::Codeblock 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 code blocks (proc parameters).
Transforms braced commands or variable references into proc parameters.
Instance Method Summary collapse
-
#value ⇒ Hash
private
Builds codeblock structure.
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 codeblock structure.
360 361 362 363 364 365 |
# File 'lib/musa-dsl/neumalang/neumalang.rb', line 360 def value { codeblock: capture(:braced_command)&.value || capture(:referenced_braced_command)&.value || capture(:use_variable)&.value } end |