Class: VueCompiler::Node::StyleBlock

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, lang = 'css', scoped = false) ⇒ StyleBlock

Returns a new instance of StyleBlock.



101
102
103
104
105
# File 'lib/vue_component_compiler/node.rb', line 101

def initialize(content, lang = 'css', scoped = false)
  @content = content
  @lang = lang
  @scoped = scoped
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



99
100
101
# File 'lib/vue_component_compiler/node.rb', line 99

def content
  @content
end

#langObject (readonly)

Returns the value of attribute lang.



99
100
101
# File 'lib/vue_component_compiler/node.rb', line 99

def lang
  @lang
end

#scopedObject (readonly)

Returns the value of attribute scoped.



99
100
101
# File 'lib/vue_component_compiler/node.rb', line 99

def scoped
  @scoped
end