Class: VueCompiler::Node::StyleBlock
- Inherits:
-
Object
- Object
- VueCompiler::Node::StyleBlock
- Defined in:
- lib/vue_component_compiler/node.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
-
#scoped ⇒ Object
readonly
Returns the value of attribute scoped.
Instance Method Summary collapse
-
#initialize(content, lang = 'css', scoped = false) ⇒ StyleBlock
constructor
A new instance of StyleBlock.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
99 100 101 |
# File 'lib/vue_component_compiler/node.rb', line 99 def content @content end |
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
99 100 101 |
# File 'lib/vue_component_compiler/node.rb', line 99 def lang @lang end |
#scoped ⇒ Object (readonly)
Returns the value of attribute scoped.
99 100 101 |
# File 'lib/vue_component_compiler/node.rb', line 99 def scoped @scoped end |