Class: Ciphr::Functions::Reader::IoReader
- Defined in:
- lib/ciphr/functions/reader.rb
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
Methods inherited from Function
aligned, inherited, #initialize, invertable?, params, #prepend, #read, variants
Constructor Details
This class inherits a constructor from Ciphr::Functions::Function
Instance Method Details
#apply ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/ciphr/functions/reader.rb', line 38 def apply input = args[0] input.binmode Proc.new do input.read(256) end end |