Class: RCommand::IOMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/rcommand/io_methods.rb

Direct Known Subclasses

RawIOMethod, StandardIOMethod

Instance Method Summary collapse

Constructor Details

#initialize(command_line) ⇒ IOMethod

Returns a new instance of IOMethod.



26
27
28
# File 'lib/rcommand/io_methods.rb', line 26

def initialize(command_line)
  @command_line = command_line
end

Instance Method Details

#eof?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


35
36
37
38
# File 'lib/rcommand/io_methods.rb', line 35

def eof?
  raise NotImplementedError,
    "eof? not implemented in #{self.class.name}."
end

#readlineObject

Raises:

  • (NotImplementedError)


30
31
32
33
# File 'lib/rcommand/io_methods.rb', line 30

def readline
  raise NotImplementedError,
    "readline not implemented in #{self.class.name}."
end