Class: Solargraph::Source::Chain::ZSuper

Inherits:
Call
  • Object
show all
Defined in:
lib/solargraph/source/chain/z_super.rb

Instance Attribute Summary collapse

Attributes inherited from Link

#last_context

Instance Method Summary collapse

Methods inherited from Call

#with_block?

Methods inherited from Link

#==, #clone_body, #clone_head, #constant?, #head?, #undefined?

Constructor Details

#initialize(word, with_block = false) ⇒ ZSuper

Returns a new instance of ZSuper.

Parameters:

  • word (String)
  • arguments (Array<Chain>)
  • with_block (Boolean) (defaults to: false)

    True if the chain is inside a block

  • head (Boolean)

    True if the call is the start of its chain



17
18
19
# File 'lib/solargraph/source/chain/z_super.rb', line 17

def initialize word, with_block = false
  super(word, [], with_block)
end

Instance Attribute Details

#argumentsArray<Chain> (readonly)

Returns:



11
12
13
# File 'lib/solargraph/source/chain/z_super.rb', line 11

def arguments
  @arguments
end

#wordString (readonly)

Returns:

  • (String)


8
9
10
# File 'lib/solargraph/source/chain/z_super.rb', line 8

def word
  @word
end

Instance Method Details

#resolve(api_map, name_pin, locals) ⇒ Object

Parameters:



24
25
26
# File 'lib/solargraph/source/chain/z_super.rb', line 24

def resolve api_map, name_pin, locals
  return super_pins(api_map, name_pin)
end