Module: FancyCommand

Defined in:
lib/fancy_command.rb,
lib/fancy_command/command.rb,
lib/fancy_command/version.rb

Defined Under Namespace

Classes: Command

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(string, **opts, &blk) ⇒ Object



5
6
7
# File 'lib/fancy_command.rb', line 5

def self.new(string, **opts, &blk)
  Command.new(string, **opts, &blk)
end

Instance Method Details

#command(string, **opts, &blk) ⇒ Object



13
14
15
# File 'lib/fancy_command.rb', line 13

def command(string, **opts, &blk)
  Command.new(string, **opts, &blk)
end

#run(string, **opts, &blk) ⇒ Object



9
10
11
# File 'lib/fancy_command.rb', line 9

def run(string, **opts, &blk)
  command(string, **opts, &blk).()
end