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 Call

#block, #location

Instance Method Summary collapse

Methods inherited from Call

#with_block?

Constructor Details

#initialize(word, with_block = false) ⇒ ZSuper

Returns a new instance of ZSuper.

Parameters:

  • word (String)
  • with_block (Boolean) (defaults to: false)

    True if the chain is inside a block



15
16
17
# File 'lib/solargraph/source/chain/z_super.rb', line 15

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

Instance Attribute Details

#arguments::Array<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:



22
23
24
# File 'lib/solargraph/source/chain/z_super.rb', line 22

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