Class: ActionWebService::ArrayType
- Defined in:
- lib/action_web_service/support/signature_types.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#element_type ⇒ Object
readonly
Returns the value of attribute element_type.
Attributes inherited from BaseType
#name, #spec, #type, #type_class
Instance Method Summary collapse
- #array? ⇒ Boolean
- #custom? ⇒ Boolean
-
#initialize(spec, element_type, name) ⇒ ArrayType
constructor
A new instance of ArrayType.
Methods inherited from BaseType
#human_name, #simple?, #structured?
Methods included from SignatureTypes
canonical_signature, canonical_signature_entry, canonical_type, canonical_type_class, canonical_type_name, class_to_type_name, derived_from?, symbol_name, type_name_to_class
Constructor Details
#initialize(spec, element_type, name) ⇒ ArrayType
Returns a new instance of ArrayType.
200 201 202 203 |
# File 'lib/action_web_service/support/signature_types.rb', line 200 def initialize(spec, element_type, name) super(spec, Array, name) @element_type = element_type end |
Instance Attribute Details
#element_type ⇒ Object (readonly)
Returns the value of attribute element_type.
198 199 200 |
# File 'lib/action_web_service/support/signature_types.rb', line 198 def element_type @element_type end |
Instance Method Details
#array? ⇒ Boolean
209 210 211 |
# File 'lib/action_web_service/support/signature_types.rb', line 209 def array? true end |
#custom? ⇒ Boolean
205 206 207 |
# File 'lib/action_web_service/support/signature_types.rb', line 205 def custom? true end |