Project

General

Profile

Bug #2147 ยป delegate-inspect.rb

pilcrow (Mike Pomraning), 09/27/2009 12:26 PM

 
require 'delegate'
require 'pp'

class A < DelegateClass(Array); end

puts "ruby-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_PLATFORM})"
puts A.new([]).inspect
pp A.new([])
    (1-1/1)