Class: RBS::AST::Directives::Use::SingleClause
- Inherits:
-
Object
- Object
- RBS::AST::Directives::Use::SingleClause
- Defined in:
- lib/rbs/ast/directives.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#new_name ⇒ Object
readonly
Returns the value of attribute new_name.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Instance Method Summary collapse
-
#initialize(type_name:, new_name:, location:) ⇒ SingleClause
constructor
A new instance of SingleClause.
Constructor Details
#initialize(type_name:, new_name:, location:) ⇒ SingleClause
Returns a new instance of SingleClause.
13 14 15 16 17 |
# File 'lib/rbs/ast/directives.rb', line 13 def initialize(type_name:, new_name:, location:) @type_name = type_name @new_name = new_name @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
11 12 13 |
# File 'lib/rbs/ast/directives.rb', line 11 def location @location end |
#new_name ⇒ Object (readonly)
Returns the value of attribute new_name.
11 12 13 |
# File 'lib/rbs/ast/directives.rb', line 11 def new_name @new_name end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
11 12 13 |
# File 'lib/rbs/ast/directives.rb', line 11 def type_name @type_name end |