Class: Rbexy::Nodes::Declaration

Inherits:
Object
  • Object
show all
Defined in:
lib/rbexy/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



128
129
130
# File 'lib/rbexy/nodes.rb', line 128

def content
  @content
end

Instance Method Details

#compileObject



134
135
136
# File 'lib/rbexy/nodes.rb', line 134

def compile
  "\"#{Util.safe_string(content)}\".html_safe"
end