Class: Arel::Nodes::Settings

Inherits:
Unary
  • Object
show all
Defined in:
lib/arel/nodes/settings.rb

Instance Method Summary collapse

Constructor Details

#initialize(expr) ⇒ Settings

Returns a new instance of Settings.

Raises:

  • (ArgumentError)


4
5
6
7
8
# File 'lib/arel/nodes/settings.rb', line 4

def initialize(expr)
  raise ArgumentError, 'Settings must be a Hash' unless expr.is_a?(Hash)

  super
end