Class: Spoom::Model::Property Abstract
- Defined in:
- lib/spoom/model/model.rb
Overview
This class is abstract.
A method or an attribute accessor
Instance Attribute Summary collapse
- #sigs ⇒ Object readonly
- #visibility ⇒ Object readonly
Attributes inherited from SymbolDef
#comments, #location, #owner, #symbol
Instance Method Summary collapse
-
#initialize(symbol, owner:, location:, visibility:, sigs: [], comments: []) ⇒ Property
constructor
A new instance of Property.
Methods inherited from SymbolDef
Constructor Details
#initialize(symbol, owner:, location:, visibility:, sigs: [], comments: []) ⇒ Property
Returns a new instance of Property.
177 178 179 180 181 182 |
# File 'lib/spoom/model/model.rb', line 177 def initialize(symbol, owner:, location:, visibility:, sigs: [], comments: []) super(symbol, owner: owner, location: location, comments: comments) @visibility = visibility @sigs = sigs end |
Instance Attribute Details
#sigs ⇒ Object (readonly)
167 168 169 |
# File 'lib/spoom/model/model.rb', line 167 def sigs @sigs end |
#visibility ⇒ Object (readonly)
164 165 166 |
# File 'lib/spoom/model/model.rb', line 164 def visibility @visibility end |