Class: Steep::TypeInference::SendArgs::PositionalArgs::SplatArg

Inherits:
Object
  • Object
show all
Includes:
Equatable
Defined in:
lib/steep/type_inference/send_args.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Equatable

#==, #eql?, #hash

Constructor Details

#initialize(node:) ⇒ SplatArg

Returns a new instance of SplatArg.



46
47
48
49
# File 'lib/steep/type_inference/send_args.rb', line 46

def initialize(node:)
  @node = node
  @type = nil
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



43
44
45
# File 'lib/steep/type_inference/send_args.rb', line 43

def node
  @node
end

#typeObject

Returns the value of attribute type.



44
45
46
# File 'lib/steep/type_inference/send_args.rb', line 44

def type
  @type
end