Module: Clamp

Extended by:
Messages
Defined in:
lib/clamp/truthy.rb,
lib/clamp/help.rb,
lib/clamp/errors.rb,
lib/clamp/command.rb,
lib/clamp/version.rb,
lib/clamp/messages.rb,
lib/clamp/option/parsing.rb,
lib/clamp/option/definition.rb,
lib/clamp/parameter/parsing.rb,
lib/clamp/attribute/instance.rb,
lib/clamp/option/declaration.rb,
lib/clamp/subcommand/parsing.rb,
lib/clamp/attribute/definition.rb,
lib/clamp/parameter/definition.rb,
lib/clamp/subcommand/execution.rb,
lib/clamp/attribute/declaration.rb,
lib/clamp/parameter/declaration.rb,
lib/clamp/subcommand/definition.rb,
lib/clamp/subcommand/declaration.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Attribute, Help, Messages, Option, Parameter, Subcommand Classes: Command, DeclarationError, ExecutionError, HelpWanted, RuntimeError, UsageError

Constant Summary collapse

TRUTHY_VALUES =
%w[1 yes enable on true].freeze
VERSION =
"1.3.2".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from Messages

clear_messages!, message, messages=

Class Attribute Details

.allow_options_after_parametersObject

Returns the value of attribute allow_options_after_parameters.



7
8
9
# File 'lib/clamp/option/parsing.rb', line 7

def allow_options_after_parameters
  @allow_options_after_parameters
end

Class Method Details

.truthy?(arg) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/clamp/truthy.rb', line 7

def self.truthy?(arg)
  TRUTHY_VALUES.include?(arg.to_s.downcase)
end