Class: Shomen::Model::Abstract
- Inherits:
-
AbstractPrime
- Object
- AbstractPrime
- Shomen::Model::Abstract
- Defined in:
- lib/shomen/model/abstract.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Full name.
-
#tags ⇒ Object
Hash of label => description.
Instance Method Summary collapse
-
#initialize(settings = {}) ⇒ Abstract
constructor
A new instance of Abstract.
- #type ⇒ Object
Methods inherited from AbstractPrime
#[], #[]=, attr_accessor, #to_h, type
Constructor Details
#initialize(settings = {}) ⇒ Abstract
Returns a new instance of Abstract.
64 65 66 67 |
# File 'lib/shomen/model/abstract.rb', line 64 def initialize(settings={}) super(settings) @table['!'] = self.class.type end |
Instance Attribute Details
#path ⇒ Object
Full name.
70 71 72 |
# File 'lib/shomen/model/abstract.rb', line 70 def path @path end |
#tags ⇒ Object
Hash of label => description.
73 74 75 |
# File 'lib/shomen/model/abstract.rb', line 73 def @tags end |
Instance Method Details
#type ⇒ Object
76 77 78 |
# File 'lib/shomen/model/abstract.rb', line 76 def type self['!'] end |