Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# encoding: utf-8 module Nanoc3::CLI::Commands class Test < Cri::Command def name 'test' end def aliases [] end def short_desc 'test' end def long_desc 'Test something.' end def usage "nanoc3 test" end def option_definitions [] end def run(options, arguments) puts "Test succeeded!" end end end Nanoc3::CLI::Base.shared_base.add_command(Nanoc3::CLI::Commands::Test.new)
This paste will be private.
From the Design Piracy series on my blog: