Class: Clive::Type::Object
- Inherits:
-
Clive::Type
- Object
- Clive::Type
- Clive::Type::Object
- Defined in:
- lib/clive/type/definitions.rb
Overview
Basic object, all arguments are valid and will simply return themselves.
Direct Known Subclasses
Array, Binary, Boolean, Float, Hexadecimal, Integer, Octal, Pathname, Range, Regexp, StrictInteger, String, Symbol, Time
Instance Method Summary collapse
-
#typecast(arg) ⇒ Object
Cast the arg (String) to the correct type.
-
#valid?(arg) ⇒ Boolean
Test the value to see if it is a valid value for this Tyoe.
Methods inherited from Clive::Type
cast, find_class, match, refute, typecast, valid?
Instance Method Details
#typecast(arg) ⇒ Object
Cast the arg (String) to the correct type.
20 21 22 |
# File 'lib/clive/type/definitions.rb', line 20 def typecast(arg) arg end |
#valid?(arg) ⇒ Boolean
Test the value to see if it is a valid value for this Tyoe.
14 15 16 |
# File 'lib/clive/type/definitions.rb', line 14 def valid?(arg) true end |