Class: RBS::AST::Directives::Use::SingleClause

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs/ast/directives.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (readonly)

Returns the value of attribute location.



11
12
13
# File 'lib/rbs/ast/directives.rb', line 11

def location
  @location
end

#new_nameObject (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_nameObject (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