class Dhall::Enum

Public Instance Methods

as_json() click to toggle source
# File lib/dhall/ast.rb, line 1100
def as_json
        selection_syntax.as_json
end
extract() click to toggle source
# File lib/dhall/ast.rb, line 1096
def extract
        tag.to_sym
end
normalize() click to toggle source
# File lib/dhall/normalize.rb, line 390
def normalize
        with(alternatives: alternatives.normalize)
end
reduce(handlers) click to toggle source
# File lib/dhall/ast.rb, line 1086
def reduce(handlers)
        handlers = handlers.to_h
        handler = handlers.fetch(tag.to_sym) { handlers.fetch(tag) }
        handler
end
to_s() click to toggle source
# File lib/dhall/ast.rb, line 1092
def to_s
        tag
end