Class: Yoda::Typing::ConstantResolver::MemberQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/yoda/typing/constant_resolver/member_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Query

#base, from_node, from_string

Constructor Details

#initialize(parent:, name:, tracer: nil) ⇒ MemberQuery

Returns a new instance of MemberQuery.

Parameters:



19
20
21
22
23
# File 'lib/yoda/typing/constant_resolver/member_query.rb', line 19

def initialize(parent:, name:, tracer: nil)
  @parent = parent
  @name = name
  @tracer = tracer
end

Instance Attribute Details

#nameSymbol (readonly)

Returns:

  • (Symbol)


11
12
13
# File 'lib/yoda/typing/constant_resolver/member_query.rb', line 11

def name
  @name
end

#parentQuery (readonly)

Returns:



8
9
10
# File 'lib/yoda/typing/constant_resolver/member_query.rb', line 8

def parent
  @parent
end

#tracerNodeTracer? (readonly)

Returns:



14
15
16
# File 'lib/yoda/typing/constant_resolver/member_query.rb', line 14

def tracer
  @tracer
end