Module: Kerplutz

Defined in:
lib/kerplutz.rb,
lib/kerplutz/builder.rb,
lib/kerplutz/command.rb,
lib/kerplutz/options.rb,
lib/kerplutz/executable.rb,
lib/kerplutz/command_map.rb

Defined Under Namespace

Classes: Action, Builder, Command, CommandMap, Executable, Flag, Option, Switch

Class Method Summary collapse

Class Method Details

.build(name) {|builder = Builder.new(executable)| ... } ⇒ Object

Yields:

  • (builder = Builder.new(executable))


6
7
8
9
10
# File 'lib/kerplutz.rb', line 6

def build(name)
  executable = Executable.new(name)
  yield builder = Builder.new(executable)
  builder.result
end