Class: Hijack::Console

Inherits:
Object
  • Object
show all
Defined in:
lib/ripl/hijack.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.remoteObject

Returns the value of attribute remote.



5
6
7
# File 'lib/ripl/hijack.rb', line 5

def remote
  @remote
end

Instance Method Details

#start_irbObject

Disable irb and make @remote accessible



8
9
10
# File 'lib/ripl/hijack.rb', line 8

def start_irb
  self.class.remote = @remote
end