Method: Dhall::RecordProjection.for

Defined in:
lib/dhall/ast.rb

.for(record, selectors) ⇒ Object



906
907
908
909
910
911
912
# File 'lib/dhall/ast.rb', line 906

def self.for(record, selectors)
	if selectors.empty?
		EmptyRecordProjection.new(record: record)
	else
		new(record: record, selectors: selectors)
	end
end