Class: SwiftGenerator::MutabilityType

Inherits:
Object
  • Object
show all
Defined in:
lib/swift_generator/code_generation/swift_class_generation.rb

Overview

Variable & Property Mutability

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mutability_id, mutability, declaration_wrapping, must_be_unwrapped: false) ⇒ MutabilityType

Returns a new instance of MutabilityType.



1437
1438
1439
1440
1441
1442
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1437

def initialize(mutability_id, mutability, declaration_wrapping, must_be_unwrapped: false)
	@mutability_id = mutability_id
	@mutability = mutability
	@declaration_wrapping = declaration_wrapping
	@must_be_unwrapped = must_be_unwrapped
end

Instance Attribute Details

#declaration_wrappingObject

Returns the value of attribute declaration_wrapping.



1434
1435
1436
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1434

def declaration_wrapping
  @declaration_wrapping
end

#must_be_unwrappedObject

Returns the value of attribute must_be_unwrapped.



1435
1436
1437
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1435

def must_be_unwrapped
  @must_be_unwrapped
end

#mutabilityObject

Returns the value of attribute mutability.



1433
1434
1435
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1433

def mutability
  @mutability
end

#mutability_idObject

Returns the value of attribute mutability_id.



1432
1433
1434
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1432

def mutability_id
  @mutability_id
end