Module: Dhall::Parser::LetBinding
- Defined in:
- lib/dhall/parser.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
518 519 520 521 522 523 524 525 |
# File 'lib/dhall/parser.rb', line 518 def value exprs = captures(:expression) Let.new( var: capture(:nonreserved_label).value, assign: exprs.last.value, type: exprs.length > 1 ? exprs.first.value : nil ) end |