Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
def show_method(m) puts "\n[[ #{m.name} ]]" # puts m.assembly # p m.locals # m.literals.each do |lit| # if Bytecode::MethodDescription === lit # show_method(lit) # end # end asm = Bytecode::Assembler.new(m.literals, m.name) stream = asm.assemble m.assembly stream.each { |s| print " "; p s } end
This paste will be private.
From the Design Piracy series on my blog: