Class: SwiftObjectPropertyType
- Inherits:
-
SwiftPropertyType
- Object
- SwiftPropertyType
- SwiftObjectPropertyType
- Defined in:
- lib/swift_generator/code_generation/swift_types.rb
Instance Attribute Summary collapse
-
#swift_class ⇒ Object
Returns the value of attribute swift_class.
Attributes inherited from SwiftPropertyType
#auto_bridged, #custom_equality_test, #custom_marshaling, #custom_unmarshaling, #hashable_value_lambda, #serialized_json_type, #swift_kind, #swift_type_name, #swift_type_symbol, #test_value_lambda
Instance Method Summary collapse
-
#initialize(swift_class, serialized_json_type, test_value: lambda{|num| 'undefined' }) ⇒ SwiftObjectPropertyType
constructor
A new instance of SwiftObjectPropertyType.
Methods inherited from SwiftPropertyType
all_swift_kinds, #hashable_value, #make_test_value
Constructor Details
#initialize(swift_class, serialized_json_type, test_value: lambda{|num| 'undefined' }) ⇒ SwiftObjectPropertyType
Returns a new instance of SwiftObjectPropertyType.
69 70 71 72 |
# File 'lib/swift_generator/code_generation/swift_types.rb', line 69 def initialize( swift_class, serialized_json_type, test_value:lambda{|num| 'undefined' } ) super( swift_class.swift_type_symbol, serialized_json_type, swift_kind: :class, test_value:test_value ) @swift_class = swift_class end |
Instance Attribute Details
#swift_class ⇒ Object
Returns the value of attribute swift_class.
67 68 69 |
# File 'lib/swift_generator/code_generation/swift_types.rb', line 67 def swift_class @swift_class end |