Class: SwiftGenerator::MutabilityType
- Inherits:
-
Object
- Object
- SwiftGenerator::MutabilityType
- Defined in:
- lib/swift_generator/code_generation/swift_class_generation.rb
Overview
Variable & Property Mutability
Instance Attribute Summary collapse
-
#declaration_wrapping ⇒ Object
Returns the value of attribute declaration_wrapping.
-
#must_be_unwrapped ⇒ Object
Returns the value of attribute must_be_unwrapped.
-
#mutability ⇒ Object
Returns the value of attribute mutability.
-
#mutability_id ⇒ Object
Returns the value of attribute mutability_id.
Instance Method Summary collapse
-
#initialize(mutability_id, mutability, declaration_wrapping, must_be_unwrapped: false) ⇒ MutabilityType
constructor
A new instance of MutabilityType.
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_wrapping ⇒ Object
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_unwrapped ⇒ Object
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 |
#mutability ⇒ Object
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_id ⇒ Object
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 |