Module: Ame

Defined in:
lib/ame-1.0.rb,
lib/ame-1.0/version.rb

Overview

Namespace for Ame.

Defined Under Namespace

Modules: Help, Types Classes: Argument, Arguments, Class, Flag, Method, Methods, Multioption, Option, Optional, Options, Root, Splat, Splus, Switch

Constant Summary collapse

AbortAllProcessing =

Value thrown to abort processing of a Root.process or Root.call.

:AmeAbortAllProcessing
AbortProcessing =

Value thrown to abort processing of a Class.process or Class.call.

:AmeAbortProcessing
Error =
Class.new(StandardError)
UnrecognizedMethod =

Error raised when a dispatch is invoked on a method that doesn’t exist.

Class.new(Error)
MalformedArgument =

Error raised when an argument can’t be parsed into the desired type.

Class.new(Error)
MissingArgument =

Error raised when a required argument is missing.

Class.new(Error)
SuperfluousArgument =

Error raised when too many arguments have been given.

Class.new(Error)
UnrecognizedOption =

Error raised when an unrecognized option has been given.

Class.new(Error)
Version =
Inventory.new(1, 0, 1){
  authors{
    author 'Nikolai Weibull', '[email protected]'
  }

  homepage 'http://disu.se/software/ame-1.0/'

  licenses{
    license 'LGPLv3+',
            'GNU Lesser General Public License, version 3 or later',
            'http://www.gnu.org/licenses/'
  }

  def dependencies
    super + Inventory::Dependencies.new{
      development 'inventory-rake', 1, 6, 0
      development 'inventory-rake-tasks-yard', 1, 4, 0
      development 'lookout', 3, 0, 0
      development 'lookout-rake', 3, 1, 0
      development 'yard', 0, 8, 0
      development 'yard-heuristics', 1, 2, 0
    }
  end

  def package_libs
    %w[argument.rb
       arguments.rb
       arguments/undefined.rb
       arguments/optional.rb
       arguments/complete.rb
       class.rb
       flag.rb
       help.rb
       help/terminal.rb
       help/delegate.rb
       method.rb
       method/undefined.rb
       methods.rb
       switch.rb
       option.rb
       multioption.rb
       optional.rb
       options.rb
       options/undefined.rb
       root.rb
       splus.rb
       splat.rb
       types.rb
       types/boolean.rb
       types/enumeration.rb
       types/float.rb
       types/integer.rb
       types/string.rb
       types/symbol.rb]
  end
}