Class: ParseJS::AST::BlockStatement
- Inherits:
-
Object
- Object
- ParseJS::AST::BlockStatement
- Defined in:
- lib/parsejs/ast.rb
Instance Attribute Summary collapse
-
#cuddly ⇒ Object
Returns the value of attribute cuddly.
Instance Method Summary collapse
Instance Attribute Details
#cuddly ⇒ Object
Returns the value of attribute cuddly.
34 35 36 |
# File 'lib/parsejs/ast.rb', line 34 def cuddly @cuddly end |
Instance Method Details
#cuddle! ⇒ Object
36 37 38 |
# File 'lib/parsejs/ast.rb', line 36 def cuddle! @cuddly = true end |
#cuddly? ⇒ Boolean
44 45 46 |
# File 'lib/parsejs/ast.rb', line 44 def cuddly? true end |
#needs_newline? ⇒ Boolean
40 41 42 |
# File 'lib/parsejs/ast.rb', line 40 def needs_newline? !@cuddly end |
#statement? ⇒ Boolean
48 49 50 |
# File 'lib/parsejs/ast.rb', line 48 def statement? true end |