Class: Rbexy::Nodes::Declaration
- Inherits:
-
Object
- Object
- Rbexy::Nodes::Declaration
- Defined in:
- lib/rbexy/nodes.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #compile ⇒ Object
-
#initialize(content) ⇒ Declaration
constructor
A new instance of Declaration.
Constructor Details
#initialize(content) ⇒ Declaration
Returns a new instance of Declaration.
130 131 132 |
# File 'lib/rbexy/nodes.rb', line 130 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
128 129 130 |
# File 'lib/rbexy/nodes.rb', line 128 def content @content end |
Instance Method Details
#compile ⇒ Object
134 135 136 |
# File 'lib/rbexy/nodes.rb', line 134 def compile "\"#{Util.safe_string(content)}\".html_safe" end |