ri bug?

N

nobullet

Try

ri -T Object#blank? in console (Ubuntu).

The result is:

More than one method matched your request. You can refine
your search by asking for information on one of:

Object#blank?, Object#blank?

Is any way to point that I want read the first?
 
B

botp

Object#blank?, Object#blank?
Is any way to point that I want read the first?

try fastri, eg

botp@jedi-hopeful:~$ qri object.blank
---------------------------------------------------------- Object#blank?
blank?()
------------------------------------------------------------------------
An object is blank if it's nil, empty, or a whitespace string. For
example, "", " ", nil, [], and {} are blank.

This simplifies

if !address.nil? && !address.empty?

to

if !address.blank?

botp@jedi-hopeful:~$

kind regards -botp
 
R

Ryan Davis

Try

ri -T Object#blank? in console (Ubuntu).

The result is:

More than one method matched your request. You can refine
your search by asking for information on one of:

Object#blank?, Object#blank?

Is any way to point that I want read the first?

You've probably got two sets of ri/rdoc installs. Try:

locate cdesc-Object.yaml | grep -iv gems

(assuming unix)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ri odd behavior 3
Erroneous output from ri File 0
ri search question 3
ri question 2
ri Time.parse 2
ri fork problem 1
How to use ri with a new package 3
ri File 2

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top