class SwiftGenerator::SwiftBlockProperty
Attributes
declaration_string[RW]
Public Class Methods
new( swift_class, property_name, declaration_string, mutability= :let, initialization_value:nil, required: false )
click to toggle source
Calls superclass method
SwiftGenerator::SwiftProperty::new
# File lib/swift_generator/code_generation/swift_class_generation.rb, line 1017 def initialize( swift_class, property_name, declaration_string, mutability= :let, initialization_value:nil, required: false ) super(swift_class, property_name, property_type_symbol, mutability= :let, initialization_value:nil, collection_type: nil, required: required, rest_omit:true ) @declaration_string = declaration_string end
Public Instance Methods
full_type_specifier()
click to toggle source
# File lib/swift_generator/code_generation/swift_class_generation.rb, line 1027 def full_type_specifier return @declaration_string end
property_declared_type()
click to toggle source
# File lib/swift_generator/code_generation/swift_class_generation.rb, line 1031 def property_declared_type @declaration_string + @mutability_type.declaration_wrapping end
resolve_type()
click to toggle source
# File lib/swift_generator/code_generation/swift_class_generation.rb, line 1023 def resolve_type() @property_type = @declaration_string end