Sha256: 67bef0ff466bffdf3b9447e0204395214f9149e8d72a998cfcbcaf2c2d738db7
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
Contents
module Birdwatcher module Commands class Irb < Birdwatcher::Command self.meta = { :description => "Start an interactive Ruby shell", :names => %w(irb), :usage => "irb" } def self.detailed_usage <<-USAGE The #{'irb'.bold} command can be used start an interactive Ruby shell (IRB) with all of the Birdwatcher classes and models loaded. #{'NOTE:'.bold} This command is not intended for normal users of Birdwatcher but can be convenient for debugging or more complex one-off data manipulation, if you know what you're doing. #{'USAGE:'.bold} #{'Start an interactive Ruby shell:'.bold} irb USAGE end def run require "irb" require "awesome_print" AwesomePrint.irb! suppress_warnings { IRB.start } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
birdwatcher-0.4.0 | lib/birdwatcher/commands/irb.rb |
birdwatcher-0.3.1 | lib/birdwatcher/commands/irb.rb |
birdwatcher-0.1.0 | lib/birdwatcher/commands/irb.rb |