Class: IO
Instance Attribute Summary collapse
-
#eof ⇒ Object
readonly
Returns the value of attribute eof.
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IO
constructor
A new instance of IO.
Constructor Details
#initialize ⇒ IO
Returns a new instance of IO
25 26 27 28 |
# File 'opal/stdlib/nodejs/io.rb', line 25 def initialize @eof = false @lineno = 0 end |
Instance Attribute Details
#eof ⇒ Object (readonly)
Returns the value of attribute eof
22 23 24 |
# File 'opal/stdlib/nodejs/io.rb', line 22 def eof @eof end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno
23 24 25 |
# File 'opal/stdlib/nodejs/io.rb', line 23 def lineno @lineno end |
Class Method Details
.binread(path) ⇒ Object
38 39 40 |
# File 'opal/stdlib/nodejs/io.rb', line 38 def self.binread(path) `return executeIOAction(function(){return __fs__.readFileSync(#{path}).toString('binary')})` end |