Class: Spoom::Model::Property
- Defined in:
- lib/spoom/model/model.rb
Overview
A method or an attribute accessor
Instance Attribute Summary collapse
-
#sigs ⇒ Object
readonly
Returns the value of attribute sigs.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Attributes inherited from SymbolDef
Instance Method Summary collapse
-
#initialize(symbol, owner:, location:, visibility:, sigs: []) ⇒ Property
constructor
A new instance of Property.
Methods inherited from SymbolDef
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
#sigs ⇒ Object (readonly)
Returns the value of attribute sigs.
158 159 160 |
# File 'lib/spoom/model/model.rb', line 158 def sigs @sigs end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility.
155 156 157 |
# File 'lib/spoom/model/model.rb', line 155 def visibility @visibility end |