Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
diff --git a/lib/compiler/bytecode.rb b/lib/compiler/bytecode.rb index 3268177..e0a1a90 100644 --- a/lib/compiler/bytecode.rb +++ b/lib/compiler/bytecode.rb @@ -71,7 +71,7 @@ class Node meth.push_cpath_top meth.find_const :Module meth.push :self - meth.send :kind_of?, 1 + meth.kind_of meth.git is_module meth.send :class, 0 is_module.set! diff --git a/spec/compiler/spec_helper.rb b/spec/compiler/spec_helper.rb index 14a6484..55908f8 100644 --- a/spec/compiler/spec_helper.rb +++ b/spec/compiler/spec_helper.rb @@ -185,7 +185,7 @@ class TestGenerator self.push_cpath_top self.find_const :Module self.push :self - self.send :kind_of?, 1 + self.kind_of self.git lbl self.send :class, 0 lbl.set!
From the Design Piracy series on my blog: