Method: YUICompressor.stringify
- Defined in:
- lib/yuicompressor.rb
.stringify(stream_or_string) ⇒ Object
:nodoc:
67 68 69 70 71 72 73 |
# File 'lib/yuicompressor.rb', line 67 def stringify(stream_or_string) #:nodoc: case stream_or_string when IO then stream_or_string.read when String then stream_or_string else raise ArgumentError, 'Stream or string required' end end |