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

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

Defined Under Namespace

Classes: SingleClause, WildcardClause

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clauses:, location:) ⇒ Use

Returns a new instance of Use.



31
32
33
34
# File 'lib/rbs/ast/directives.rb', line 31

def initialize(clauses:, location:)
  @clauses = clauses
  @location = location
end

Instance Attribute Details

#clausesObject (readonly)

Returns the value of attribute clauses.



29
30
31
# File 'lib/rbs/ast/directives.rb', line 29

def clauses
  @clauses
end

#locationObject (readonly)

Returns the value of attribute location.



29
30
31
# File 'lib/rbs/ast/directives.rb', line 29

def location
  @location
end