Class: Content

Inherits:
Object
  • Object
show all
Defined in:
lib/diml/elements/content.rb

Overview

Content is a basic class that represents a non-keyword value

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



6
7
8
# File 'lib/diml/elements/content.rb', line 6

def content
  @content
end