Top Level Namespace

Defined Under Namespace

Modules: IRB, RubyToken Classes: Object, RubyLex, XMP

Constant Summary collapse

SLex =
IRB::SLex

Instance Method Summary collapse

Instance Method Details

#xmp(exps, bind = nil) ⇒ Object



81
82
83
84
85
86
# File 'lib/irb/xmp.rb', line 81

def xmp(exps, bind = nil)
  bind = IRB::Frame.top(1) unless bind
  xmp = XMP.new(bind)
  xmp.puts exps
  xmp
end