Class: Maccro::DSL::AndExp

Inherits:
Node
  • Object
show all
Defined in:
lib/maccro/dsl/expression.rb

Overview

class RescueExp < Node

# TODO: getting source of rescue node DOES drop the beggining "begin" and tailing "end"
def type; :"RESCUE"; end
def self.match?(node); node.type == :"RESCUE"; end

end

Instance Attribute Summary

Attributes inherited from Node

#first_column, #first_lineno, #last_column, #last_lineno, #name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#capture, #children, #initialize, #match?, #to_code_range

Methods included from ASTNodeWrapper

#capture, #children, #match?, #to_code_range

Constructor Details

This class inherits a constructor from Maccro::DSL::Node

Class Method Details

.match?(node) ⇒ Boolean

Returns:

  • (Boolean)


38
# File 'lib/maccro/dsl/expression.rb', line 38

def self.match?(node); node.type == :AND; end

Instance Method Details

#typeObject



37
# File 'lib/maccro/dsl/expression.rb', line 37

def type; :AND; end