Class: IO
Instance Attribute Summary collapse
- 
  
    
      #lineno  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute lineno. 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(fd, flags = 'r')  ⇒ IO 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of IO. 
- #initialize_before_node_io ⇒ Object
Constructor Details
#initialize(fd, flags = 'r') ⇒ IO
Returns a new instance of IO.
| 31 32 33 34 | # File 'opal/stdlib/nodejs/io.rb', line 31 def initialize(fd, flags = 'r') @lineno = 0 initialize_before_node_io(fd, flags) end | 
Instance Attribute Details
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
| 27 28 29 | # File 'opal/stdlib/nodejs/io.rb', line 27 def lineno @lineno end | 
Class Method Details
.binread(path) ⇒ Object
| 44 45 46 | # File 'opal/stdlib/nodejs/io.rb', line 44 def self.binread(path) `return executeIOAction(function(){return __fs__.readFileSync(#{path}).toString('binary')})` end | 
Instance Method Details
#initialize_before_node_io ⇒ Object
| 29 | # File 'opal/stdlib/nodejs/io.rb', line 29 alias initialize_before_node_io initialize |