require "PP"class MyClass attr_reader :scheduleendMyObject = MyClass.newPP::pp MyObject.schedule # nillMyObject.schedule = 0 # undefined method `schedule=‘ for #阅读全文>
发表于 @ 2007年07月30日 04:12:00|评论(loading...)|收藏
require "PP"PP::pp ["line1", "line2"].join("\n") # "line1\nline2"阅读全文>
发表于 @ 2007年07月29日 10:07:00|评论(loading...)|收藏
require "PP"PP::pp "hello".center(4) # "hello"PP::pp "hello".center(20) # "hello "PP::pp "hello".center(20, ‘123‘) # "1231231hello12312312"阅读全文>
发表于 @ 2007年07月29日 09:28:00|评论(loading...)|收藏
require "PP"PP::pp Array.new.respond_to?("class") # truePP::pp Array.new.respond_to?("new") # false.阅读全文>
发表于 @ 2007年07月28日 21:30:00|评论(loading...)|收藏
require "PP"PP::pp Array.new.class # Array.阅读全文>
发表于 @ 2007年07月28日 21:25:00|评论(loading...)|收藏
require "PP"PP::pp Array.new # []阅读全文>
发表于 @ 2007年07月28日 17:39:00|评论(loading...)|收藏
require "PP"/(\w ), (\w ), or (\w )/ =~ ‘Without a Bob, ox, or bin!‘PP::pp $ # "Without a "阅读全文>
发表于 @ 2007年07月28日 17:11:00|评论(loading...)|收藏
require "PP"/(\w ), (\w ), or (\w )/ =~ ‘Without a Bob, ox, or bin!‘PP::pp $` # "Without a "阅读全文>
发表于 @ 2007年07月28日 17:01:00|评论(loading...)|收藏
require "PP"/(\w ), (\w ), or (\w )/ =~ ‘Without a Bob, ox, or bin!‘PP::pp $阅读全文>
发表于 @ 2007年07月28日 16:53:00|评论(loading...)|收藏
require "PP"PP::pp "has 5 and 3" [/\d /] # "5"阅读全文>
发表于 @ 2007年07月28日 16:31:00|评论(loading...)|收藏
require "PP"re = /(\w ), (\w ), or (\w )/s = ‘Without a Bob, ox, or bin!‘match = re.match(s)PP::pp match.post_match # "!"阅读全文>
发表于 @ 2007年07月28日 16:20:00|评论(loading...)|收藏
require "PP"re = /(\w ), (\w ), or (\w )/s = ‘Without a Bob, ox, or bin!‘match = re.match(s)PP::pp match.pre_match #"Without a "阅读全文>
发表于 @ 2007年07月28日 16:16:00|评论(loading...)|收藏
require "PP"PP::pp [3, 1, 2].sort #[1, 2, 3]阅读全文>
发表于 @ 2007年07月27日 22:44:00|评论(loading...)|收藏
require "PP"PP::pp /a/.match(‘this is a string‘) # #阅读全文>
发表于 @ 2007年07月27日 17:48:00|评论(loading...)|收藏
require "PP"PP::pp "hello".include?("lo") # truePP::pp "hello".include?("ol") # falsePP::pp "hello".include?(?h) # true.阅读全文>
发表于 @ 2007年07月09日 13:48:00|评论(loading...)|收藏