Sha256: 804877a3270f09f541bffa54c8f457ffa0d1e016c1753ed8ff89431cee502b49

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

module CommandLion

  # The Option class is a direct sub-class of the Command class. In pretty much
  # every way it is just a command under the hood. However, instead of being indexed
  # in an application's commands index, it will be available in whatever command's
  # options index.
  #
  # == Example
  #
  #   app = CommandLion::App.build do
  #     command :example_command do
  #         # ...
  #       option :example_option do
  #         # ...
  #       end
  #     end
  #   end
  #
  #   app.commands[:example_command].options[:example_option]
  class Option < Command; end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
command_lion-1.0.4 lib/command_lion/option.rb
command_lion-1.0.3geff lib/command_lion/option.rb
command_lion-1.0.3 lib/command_lion/option.rb
command_lion-1.0.2 lib/command_lion/option.rb