module FancyCommand

Constants

VERSION

Public Class Methods

defaults() click to toggle source
# File lib/fancy_command.rb, line 9
def self.defaults
  @defaults ||= {}.freeze
end
defaults=(new_defaults) click to toggle source
# File lib/fancy_command.rb, line 13
def self.defaults=(new_defaults)
  @defaults = new_defaults.freeze
end
new(string, **opts, &blk) click to toggle source
# File lib/fancy_command.rb, line 5
def self.new(string, **opts, &blk)
  Command.new(string, **opts, &blk)
end

Public Instance Methods

command(string, **opts, &blk) click to toggle source
# File lib/fancy_command.rb, line 21
def command(string, **opts, &blk)
  Command.new(string, **opts, &blk)
end
run(string, **opts, &blk) click to toggle source
# File lib/fancy_command.rb, line 17
def run(string, **opts, &blk)
  command(string, **opts, &blk).()
end