Sha256: 351aef8c0311aabfaa1e33735a1021d61c9afc430a0015e5ae1de862ea6f386f
Contents?: true
Size: 293 Bytes
Versions: 9
Compression:
Stored size: 293 Bytes
Contents
#! /usr/bin/env ruby # An example of subcommands require "clamp" class FlipFlop < Clamp::Command subcommand "flip", "flip it" do def execute puts "FLIPPED" end end subcommand "flop", "flop it" do def execute puts "FLOPPED" end end end FlipFlop.run
Version data entries
9 entries across 9 versions & 1 rubygems