Class: Red::ConstantNode::BreakNode
- Inherits:
-
Red::ConstantNode
- Object
- Red::ConstantNode
- Red::ConstantNode::BreakNode
- Defined in:
- lib/red/constant_nodes.rb
Overview
:nodoc:
Instance Method Summary collapse
- #compile_node(options = {}) ⇒ Object
-
#initialize(*args) ⇒ BreakNode
constructor
A new instance of BreakNode.
Constructor Details
#initialize(*args) ⇒ BreakNode
Returns a new instance of BreakNode.
4 5 6 |
# File 'lib/red/constant_nodes.rb', line 4 def initialize(*args) raise(BuildError::NoBreakArguments, "Break can't take an argument in JavaScript") unless args.empty? end |
Instance Method Details
#compile_node(options = {}) ⇒ Object
8 9 10 |
# File 'lib/red/constant_nodes.rb', line 8 def compile_node( = {}) return "break" end |