Class: Renote::Models::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/renote/models/shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeShell

Returns a new instance of Shell.



52
53
54
55
# File 'lib/renote/models/shell.rb', line 52

def initialize
  @output_file = nil
  super() # NOTE: This *must* be called, otherwise states won't get initialized
end

Instance Attribute Details

#output_file_pathObject

Returns the value of attribute output_file_path.



8
9
10
# File 'lib/renote/models/shell.rb', line 8

def output_file_path
  @output_file_path
end

Instance Method Details

#open(handle) ⇒ Object



47
48
49
50
# File 'lib/renote/models/shell.rb', line 47

def open(handle)
  set_output_file handle
  start!
end