Class: Shomen::Model::Constant
- Inherits:
-
Abstract
- Object
- AbstractPrime
- Abstract
- Shomen::Model::Constant
- Defined in:
- lib/shomen/model/constant.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#files ⇒ Object
Returns the value of attribute files.
-
#format ⇒ Object
Format of comment (rdoc, markdown or plain).
-
#name ⇒ Object
Constant’s basename, must start with a capitalized letter.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Abstract
Class Method Summary collapse
Methods inherited from Abstract
Methods inherited from AbstractPrime
#[], #[]=, attr_accessor, #initialize, #to_h
Constructor Details
This class inherits a constructor from Shomen::Model::Abstract
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
19 20 21 |
# File 'lib/shomen/model/constant.rb', line 19 def comment @comment end |
#files ⇒ Object
Returns the value of attribute files.
28 29 30 |
# File 'lib/shomen/model/constant.rb', line 28 def files @files end |
#format ⇒ Object
Format of comment (rdoc, markdown or plain).
22 23 24 |
# File 'lib/shomen/model/constant.rb', line 22 def format @format end |
#name ⇒ Object
Constant’s basename, must start with a capitalized letter.
13 14 15 |
# File 'lib/shomen/model/constant.rb', line 13 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
16 17 18 |
# File 'lib/shomen/model/constant.rb', line 16 def namespace @namespace end |
#value ⇒ Object
Returns the value of attribute value.
25 26 27 |
# File 'lib/shomen/model/constant.rb', line 25 def value @value end |
Class Method Details
.type ⇒ Object
10 |
# File 'lib/shomen/model/constant.rb', line 10 def self.type; 'constant'; end |