Class: ParseJS::AST::Node
- Inherits:
-
Object
- Object
- ParseJS::AST::Node
- Defined in:
- lib/parsejs/ast.rb
Instance Method Summary collapse
Instance Method Details
#cuddly? ⇒ Boolean
10 11 12 |
# File 'lib/parsejs/ast.rb', line 10 def cuddly? false end |
#needs_newline? ⇒ Boolean
18 19 20 |
# File 'lib/parsejs/ast.rb', line 18 def needs_newline? false end |
#statement? ⇒ Boolean
14 15 16 |
# File 'lib/parsejs/ast.rb', line 14 def statement? false end |
#type?(string) ⇒ Boolean
6 7 8 |
# File 'lib/parsejs/ast.rb', line 6 def type?(string) self.class.name.split("::").last == string end |