Module: Bake::Types::Nil

Extended by:
Type
Defined in:
lib/bake/types/nil.rb

Class Method Summary collapse

Methods included from Type

|

Class Method Details

.composite?Boolean

Returns:



13
14
15
# File 'lib/bake/types/nil.rb', line 13

def self.composite?
	false
end

.parse(input) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/bake/types/nil.rb', line 17

def self.parse(input)
	if input =~ /nil|null/i
		return nil
	else
		raise ArgumentError, "Cannot coerce #{input.inspect} into nil!"
	end
end