Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
[headius @ cnutter:~] ◆ jruby -e "module X; autoload :Y, 'bar/foo'; module Z; def self.yoohoo; Y; end; end; end; Z.yoohoo" :1:in `const_missing': uninitialized constant Z (NameError) from :1 [headius @ cnutter:~] ◆ cat bar/foo.rb puts 'here' module X; Y = 1; end [headius @ cnutter:~] ◆ jruby -e "module X; autoload :Y, 'bar/foo'; def self.yoohoo; Y; end; end; X.yoohoo" here [headius @ cnutter:~] ◆ jruby -e "module X; autoload :Y, 'bar/foo'; module Z; def self.yoohoo; Y; end; end; end; Z.yoohoo" :1:in `const_missing': uninitialized constant Z (NameError) from :1
This paste will be private.
From the Design Piracy series on my blog: