Method: Utils::IRB::Shell#ri
- Defined in:
- lib/utils/irb.rb
#ri(*patterns) ⇒ Object
Start ri for pattern. If pattern is not string like, call it with pattern.class.name as argument.
36 37 38 39 |
# File 'lib/utils/irb.rb', line 36 def ri(*patterns) patterns.map! { |p| p.respond_to?(:to_str) ? p.to_str : p.class.name } system "ri #{patterns.map { |p| "'#{p}'" } * ' '} | #{$pager}" end |