Class: Spoom::Model::Property

Inherits:
SymbolDef show all
Defined in:
lib/spoom/model/model.rb

Overview

A method or an attribute accessor

Direct Known Subclasses

Attr, Method

Instance Attribute Summary collapse

Attributes inherited from SymbolDef

#location, #owner, #symbol

Instance Method Summary collapse

Methods inherited from SymbolDef

#full_name, #name

Constructor Details

#initialize(symbol, owner:, location:, visibility:, sigs: []) ⇒ Property

Returns a new instance of Property.



169
170
171
172
173
174
# File 'lib/spoom/model/model.rb', line 169

def initialize(symbol, owner:, location:, visibility:, sigs: [])
  super(symbol, owner: owner, location: location)

  @visibility = visibility
  @sigs = sigs
end

Instance Attribute Details

#sigsObject (readonly)

Returns the value of attribute sigs.



158
159
160
# File 'lib/spoom/model/model.rb', line 158

def sigs
  @sigs
end

#visibilityObject (readonly)

Returns the value of attribute visibility.



155
156
157
# File 'lib/spoom/model/model.rb', line 155

def visibility
  @visibility
end