Class: Content
- Inherits:
-
Object
- Object
- Content
- Defined in:
- lib/diml/elements/content.rb
Overview
Content is a basic class that represents a non-keyword value
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(value) ⇒ Content
constructor
A new instance of Content.
Constructor Details
#initialize(value) ⇒ Content
Returns a new instance of Content.
8 9 10 |
# File 'lib/diml/elements/content.rb', line 8 def initialize(value) @content = value end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/diml/elements/content.rb', line 6 def content @content end |