Peña, Botp
11/17/2006 2:09:00 AM
:From => "Mauricio Julio Fernández Pradier"
# On Fri, Nov 17, 2006 at 12:12:52AM +0900, Gabriele Marrone wrote:
# > I like fastri :)
# :-)
Hi Mauricio,
1) it seems that fri does not implem multiple queries yet? eg
C:\temp>fri upcase downcase
---------------------------------------------------------- String#upcase
str.upcase => new_str
------------------------------------------------------------------------
Returns a copy of _str_ with all lowercase letters replaced with
their uppercase counterparts. The operation is locale
insensitive---only characters ``a'' to ``z'' are affected.
"hEllO".upcase #=> "HELLO"
C:\temp>
yet
C:\temp>ri -f plain -T upcase downcase
---------------------------------------------------------- String#upcase
str.upcase => new_str
------------------------------------------------------------------------
Returns a copy of _str_ with all lowercase letters replaced with
their uppercase counterparts. The operation is locale
insensitive---only characters ``a'' to ``z'' are affected.
"hEllO".upcase #=> "HELLO"
-------------------------------------------------------- String#downcase
str.downcase => new_str
------------------------------------------------------------------------
Returns a copy of _str_ with all uppercase letters replaced with
their lowercase counterparts. The operation is locale
insensitive---only characters ``A'' to ``Z'' are affected.
"hEllO".downcase #=> "hello"
2) also, can we allow a -T for fri (since some do like pager while others like do not --sometimes. i prefer piping and teeing and all output in one :)
C:\temp>fri -f plain -T upcase downcase
c:/ruby/lib/ruby/1.8/optparse.rb:1381:in `complete': invalid option: -T (OptionParser::InvalidOption)
3) it would be nice if queries (if possible) may return related topics. eg, something like, "Related methods: capitalize, downcase, upcase, trim, ltrim, etc...". This is very good for noobies like me. this may be quite a hard work since we may need an index..
thanks for fri. it really is fast even on mswindows.
kind regards -botp