Class: Ciphr::Functions::Reader::IoReader

Inherits:
Function
  • Object
show all
Defined in:
lib/ciphr/functions/reader.rb

Instance Attribute Summary

Attributes inherited from Function

#args, #options

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

#applyObject



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