Class: VueCompiler::Node::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/vue_component_compiler/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Text

Returns a new instance of Text.



33
34
35
# File 'lib/vue_component_compiler/node.rb', line 33

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



31
32
33
# File 'lib/vue_component_compiler/node.rb', line 31

def content
  @content
end