Module: Dhall::Parser::FirstApplicationExpression
- Defined in:
- lib/dhall/parser.rb
Instance Method Summary collapse
Instance Method Details
#merge ⇒ Object
133 134 135 136 137 138 139 |
# File 'lib/dhall/parser.rb', line 133 def merge Merge.new( record: captures(:import_expression)[0].value, input: captures(:import_expression)[1].value, type: nil ) end |
#value ⇒ Object
121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/dhall/parser.rb', line 121 def value if captures.key?(:merge) merge elsif captures.key?(:some) Optional.new( value: capture(:import_expression).value ) else super end end |