Module: Bake::Types::Output
- Extended by:
- Type
- Defined in:
- lib/bake/types/output.rb
Class Method Summary collapse
Methods included from Type
Class Method Details
.composite? ⇒ Boolean
13 14 15 |
# File 'lib/bake/types/output.rb', line 13 def self.composite? false end |
.parse(input) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bake/types/output.rb', line 17 def self.parse(input) case input when '-' return $stdout when IO, StringIO return input else File.open(input, "w") end end |