Class: HamlLint::Tree::ScriptNode
- Defined in:
- lib/haml_lint/tree/script_node.rb
Overview
Represents a node which produces output based on Ruby code.
Instance Attribute Summary
Attributes inherited from Node
#children, #line, #parent, #type
Instance Method Summary collapse
-
#script ⇒ String
Returns the source for the script following the ‘-` marker.
Methods inherited from Node
#find, #initialize, #inspect, #next_node, #source_code, #successor, #text
Constructor Details
This class inherits a constructor from HamlLint::Tree::Node
Instance Method Details
#script ⇒ String
Returns the source for the script following the ‘-` marker.
7 8 9 |
# File 'lib/haml_lint/tree/script_node.rb', line 7 def script @value[:text] end |