Class: Aries::ParamType
- Inherits:
-
Object
- Object
- Aries::ParamType
- Defined in:
- lib/aries/param_type.rb
Constant Summary collapse
- ALLOWED_TYPES =
%w{any array boolean integer number null object string}
Instance Method Summary collapse
-
#initialize(type, parent = nil) ⇒ ParamType
constructor
A new instance of ParamType.
- #type ⇒ Object
Constructor Details
#initialize(type, parent = nil) ⇒ ParamType
Returns a new instance of ParamType.
7 8 9 10 |
# File 'lib/aries/param_type.rb', line 7 def initialize type, parent = nil @type = type @parent = parent end |
Instance Method Details
#type ⇒ Object
12 13 14 |
# File 'lib/aries/param_type.rb', line 12 def type @type end |