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.



1382
1383
1384
1385
1386
1387
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1382

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.



1379
1380
1381
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1379

def declaration_wrapping
  @declaration_wrapping
end

#must_be_unwrappedObject

Returns the value of attribute must_be_unwrapped.



1380
1381
1382
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1380

def must_be_unwrapped
  @must_be_unwrapped
end

#mutabilityObject

Returns the value of attribute mutability.



1378
1379
1380
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1378

def mutability
  @mutability
end

#mutability_idObject

Returns the value of attribute mutability_id.



1377
1378
1379
# File 'lib/swift_generator/code_generation/swift_class_generation.rb', line 1377

def mutability_id
  @mutability_id
end