Class: VueCompiler::Token::ScriptBlock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



78
79
80
# File 'lib/vue_component_compiler/token.rb', line 78

def content
  @content
end

#langObject (readonly)

Returns the value of attribute lang.



78
79
80
# File 'lib/vue_component_compiler/token.rb', line 78

def lang
  @lang
end