Class: Aries::ParamType

Inherits:
Object
  • Object
show all
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

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

#typeObject



12
13
14
# File 'lib/aries/param_type.rb', line 12

def type
  @type
end