Class: Shomen::Model::Abstract

Inherits:
AbstractPrime show all
Defined in:
lib/shomen/model/abstract.rb

Direct Known Subclasses

Constant, Document, Method, Module

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject

Full name.



70
71
72
# File 'lib/shomen/model/abstract.rb', line 70

def path
  @path
end

#tagsObject

Hash of label => description.



73
74
75
# File 'lib/shomen/model/abstract.rb', line 73

def tags
  @tags
end

Instance Method Details

#typeObject



76
77
78
# File 'lib/shomen/model/abstract.rb', line 76

def type
  self['!']
end