Module: Ripl::Irb
- Defined in:
- lib/ripl/irb.rb
Defined Under Namespace
Modules: Commands, ConvertIrb, MockIrb
Constant Summary
collapse
- VERSION =
'0.2.3'
Instance Method Summary
collapse
Instance Method Details
#before_loop ⇒ Object
7
8
9
10
|
# File 'lib/ripl/irb.rb', line 7
def before_loop
mock_irb
super
end
|
#mock_irb ⇒ Object
12
13
14
15
16
|
# File 'lib/ripl/irb.rb', line 12
def mock_irb
mod = Object.const_set(:IRB, Module.new).extend(MockIrb)
conf = {}.extend ConvertIrb
class <<mod; self end.send(:define_method, :conf) { conf }
end
|