U:RDoc::AnyMethod[iI"xmp:EFI"Object#xmp;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"cA convenience method that's only available when the you require the IRB::XMP standard library.;To:RDoc::Markup::BlankLineo; ; [I"ICreates a new XMP object, using the given expressions as the +exps+ ;TI"Sparameter, and optional binding as +bind+ or uses the top-level binding. Then ;TI"Bevaluates the given expressions using the +:XMP+ prompt mode.;T@o; ; [I"For example:;T@o:RDoc::Markup::Verbatim; [ I"require 'irb/xmp' ;TI"ctx = binding ;TI"xmp 'foo = "bar"', ctx ;TI"#=> foo = "bar" ;TI" #==>"bar" ;TI"ctx.eval 'foo' ;TI"#=> "bar" ;T: @format0o; ; [I"&See XMP.new for more information.;T: @fileI"lib/irb/xmp.rb;T:0@omit_headings_from_table_of_contents_below000[I"(exps, bind = nil);T@#FI" Object;TcRDoc::NormalClass00