Class: VueCompiler::Token::ScriptBlock
- Inherits:
-
Object
- Object
- VueCompiler::Token::ScriptBlock
- Defined in:
- lib/vue_component_compiler/token.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
Instance Method Summary collapse
-
#initialize(content, lang = 'js') ⇒ ScriptBlock
constructor
A new instance of ScriptBlock.
Constructor Details
#initialize(content, lang = 'js') ⇒ ScriptBlock
Returns a new instance of ScriptBlock.
80 81 82 83 |
# File 'lib/vue_component_compiler/token.rb', line 80 def initialize(content, lang = 'js') @content = content @lang = lang end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
78 79 80 |
# File 'lib/vue_component_compiler/token.rb', line 78 def content @content end |
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
78 79 80 |
# File 'lib/vue_component_compiler/token.rb', line 78 def lang @lang end |