%w{rubygems pp wirble what_methods}.each do |lib|
begin
require lib
rescue LoadError => err
$stderr.puts "Couldn't load #{lib}: #{err}"
end
end
%w{init colorize}.each { |str| Wirble.send(str) }
if I have an object, what method can I call on it to get that result?
1.9.3-p194 :009 > "hello".what? "HELLO"
"hello".upcase == "HELLO"
"hello".swapcase == "HELLO"
"hello".upcase! == "HELLO"
"hello".swapcase! == "HELLO"
No comments:
Post a Comment