Class: Parser::AST::Node
- Inherits:
-
Object
- Object
- Parser::AST::Node
- Defined in:
- lib/ruby2js/converter.rb
Instance Method Summary collapse
Instance Method Details
#is_method? ⇒ Boolean
101 102 103 104 105 106 107 108 |
# File 'lib/ruby2js/converter.rb', line 101 def is_method? return false if type == :attr return true if children.length > 2 return true unless loc selector = loc.selector return true unless selector.source_buffer selector.source_buffer.source[selector.end_pos] == '(' end |