Module: Bake::Types::Input

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

Class Method Summary collapse

Methods included from Type

|

Class Method Details

.composite?Boolean

Returns:



28
29
30
# File 'lib/bake/types/input.rb', line 28

def self.composite?
	false
end

.parse(input) ⇒ Object



32
33
34
35
36
37
38
39
# File 'lib/bake/types/input.rb', line 32

def self.parse(input)
	case input
	when '-'
		return $stdin
	else
		File.open(input)
	end
end