module Ripl::Irb::MockIrb

Constants

ACTUAL_IRB_CLASSES

Public Instance Methods

const_missing(*args) click to toggle source
# File lib/ripl/irb.rb, line 64
def const_missing(*args)
  mock = if ACTUAL_IRB_CLASSES.include?(args[0])
    Class.new.extend(MockIrb)
  else
    Module.new.extend(MockIrb)
  end
  self.const_set(args[0], mock)
end
method_missing(*) click to toggle source
# File lib/ripl/irb.rb, line 73
def method_missing(*)
end