Class: Steep::AST::Signature::Members::Ivar

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/ast/signature/members.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, name:, type:) ⇒ Ivar

Returns a new instance of Ivar.



66
67
68
69
70
# File 'lib/steep/ast/signature/members.rb', line 66

def initialize(location:, name:, type:)
  @location = location
  @name = name
  @type = type
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



62
63
64
# File 'lib/steep/ast/signature/members.rb', line 62

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



63
64
65
# File 'lib/steep/ast/signature/members.rb', line 63

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



64
65
66
# File 'lib/steep/ast/signature/members.rb', line 64

def type
  @type
end