Class: Shomen::Model::Constant

Inherits:
Abstract show all
Defined in:
lib/shomen/model/constant.rb

Instance Attribute Summary collapse

Attributes inherited from Abstract

#path, #tags

Class Method Summary collapse

Methods inherited from Abstract

#initialize, #type

Methods inherited from AbstractPrime

#[], #[]=, attr_accessor, #initialize, #to_h

Constructor Details

This class inherits a constructor from Shomen::Model::Abstract

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



19
20
21
# File 'lib/shomen/model/constant.rb', line 19

def comment
  @comment
end

#filesObject

Returns the value of attribute files.



28
29
30
# File 'lib/shomen/model/constant.rb', line 28

def files
  @files
end

#formatObject

Format of comment (rdoc, markdown or plain).



22
23
24
# File 'lib/shomen/model/constant.rb', line 22

def format
  @format
end

#nameObject

Constant’s basename, must start with a capitalized letter.



13
14
15
# File 'lib/shomen/model/constant.rb', line 13

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



16
17
18
# File 'lib/shomen/model/constant.rb', line 16

def namespace
  @namespace
end

#valueObject

Returns the value of attribute value.



25
26
27
# File 'lib/shomen/model/constant.rb', line 25

def value
  @value
end

Class Method Details

.typeObject



10
# File 'lib/shomen/model/constant.rb', line 10

def self.type; 'constant'; end