Method: SwiftPropertyType#initialize
- Defined in:
- lib/swift_generator/code_generation/swift_types.rb
#initialize(swift_type_symbol, serialized_json_type, auto_bridged: false, swift_kind: :primitive, test_value: lambda{|num| 'undefined' }, unmarshal_method: nil) ⇒ SwiftPropertyType
Returns a new instance of SwiftPropertyType.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/swift_generator/code_generation/swift_types.rb', line 20 def initialize( swift_type_symbol, serialized_json_type, auto_bridged:false, swift_kind: :primitive, test_value:lambda{|num| 'undefined' }, unmarshal_method: nil) @swift_type_symbol = swift_type_symbol @swift_type_name = swift_type_symbol.to_s @serialized_json_type = serialized_json_type @auto_bridged = auto_bridged @swift_kind = swift_kind @test_value_lambda = test_value @custom_equality_test = nil @hashable_value_lambda = nil @unmarshal_method_lambda = unmarshal_method end |