Class: BabySqueel::Nodes::Node

Inherits:
Proxy
  • Object
show all
Extended by:
Operators::ArelAliasing
Includes:
Operators::Comparison, Operators::Equality, Operators::Generic, Operators::Grouping, Operators::Matching
Defined in:
lib/baby_squeel/nodes/node.rb

Overview

This is a generic proxy class that includes all possible modules. In the future, these proxy classes should be more specific and only include necessary/applicable modules.

Direct Known Subclasses

Attribute, Binary, Function, Grouping

Instance Attribute Summary

Attributes inherited from Proxy

#_arel

Instance Method Summary collapse

Methods included from Operators::ArelAliasing

arel_alias

Methods included from Operators::Generic

#op

Methods inherited from Proxy

const_missing, #inspect, #respond_to?

Constructor Details

#initialize(node) ⇒ Node

Returns a new instance of Node.



10
11
12
13
# File 'lib/baby_squeel/nodes/node.rb', line 10

def initialize(node)
  super
  node.extend Arel::Math
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BabySqueel::Nodes::Proxy