Module: Dhall::Builtins

Defined in:
lib/dhall/builtins.rb

Defined Under Namespace

Classes: Bool, Double, Double_show, Integer, Integer_show, Integer_toDouble, Kind, List, List_build, List_fold, List_head, List_indexed, List_last, List_length, List_reverse, Natural, Natural_build, Natural_even, Natural_fold, Natural_isZero, Natural_odd, Natural_show, Natural_subtract, Natural_toInteger, None, Optional, Optional_build, Optional_fold, Sort, Text, Text_show, Type

Class Method Summary collapse

Class Method Details

.[](k) ⇒ Object

rubocop:enable Style/ClassAndModuleCamelCase



400
401
402
403
# File 'lib/dhall/builtins.rb', line 400

def self.[](k)
	const = constants.find { |c| c.to_s.tr("_", "/").to_sym == k }
	const && const_get(const).new
end