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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace:, location:) ⇒ WildcardClause

Returns a new instance of WildcardClause.

Parameters:

  • namespace: (Namespace)
  • location: (loc, nil)


23
24
25
26
# File 'lib/rbs/ast/directives.rb', line 23

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

Instance Attribute Details

#locationloc? (readonly)

Returns the value of attribute location.

Returns:

  • (loc, nil)


21
22
23
# File 'lib/rbs/ast/directives.rb', line 21

def location
  @location
end

#namespaceNamespace (readonly)

Returns the value of attribute namespace.

Returns:



21
22
23
# File 'lib/rbs/ast/directives.rb', line 21

def namespace
  @namespace
end