Class: JDBCHelper::SQL::Expression

Inherits:
Object
  • Object
show all
Defined in:
lib/jdbc-helper/sql/expression.rb

Overview

Since:

  • 0.7.0

Instance Method Summary collapse

Constructor Details

#initializeExpression

Returns a new instance of Expression.

Raises:

  • (Exception)

Since:

  • 0.7.0



78
79
80
# File 'lib/jdbc-helper/sql/expression.rb', line 78

def initialize
  raise Exception.new("JDBCHelper::SQL::Expression is an abstract class")
end

Instance Method Details

#==(other) ⇒ Object

Since:

  • 0.7.0



82
83
84
# File 'lib/jdbc-helper/sql/expression.rb', line 82

def == other
  self.to_s == other.to_s
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)

Since:

  • 0.7.0



86
87
88
# File 'lib/jdbc-helper/sql/expression.rb', line 86

def eql? other
  self.class == other.class && self.to_s == other.to_s
end

#hashObject

Since:

  • 0.7.0



90
91
92
# File 'lib/jdbc-helper/sql/expression.rb', line 90

def hash
  [self.class, self.to_s].hash
end