class HamlLint::Tree::ScriptNode
Represents a node which produces output based on Ruby code.
Public Instance Methods
parsed_script()
click to toggle source
The Ruby script contents parsed into a syntax tree.
@return [ParsedRuby] syntax tree in the form returned by Parser gem
# File lib/haml_lint/tree/script_node.rb, line 11 def parsed_script HamlLint::ParsedRuby.new(HamlLint::RubyParser.new.parse(script)) end
script()
click to toggle source
Returns the source for the script following the `-` marker.
@return [String]
# File lib/haml_lint/tree/script_node.rb, line 18 def script @value[:text] end