Class: Ronin::Core::Params::Types::Type Private

Inherits:
Object
  • Object
show all
Defined in:
lib/ronin/core/params/types/type.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The base type for all command-line argument types.

Direct Known Subclasses

Boolean, Enum, Numeric, Regexp, String, URI

Instance Method Summary collapse

Instance Method Details

#coerce(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method is abstract.

The default coerce method.

Parameters:

  • value (Object)

    The value to coerce.

Returns:

  • (Object)

    The coerced value.

Raises:



46
47
48
# File 'lib/ronin/core/params/types/type.rb', line 46

def coerce(value)
  raise(NotImplementedError,"#{self.class}##{__method__} method was not implemented")
end