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.



70
71
72
73
74
# File 'lib/steep/ast/signature/members.rb', line 70

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end