Class: DataMapper::SQLFinders::Query::DefaultDirection

Inherits:
Direction
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/data_mapper/sql_finders/query.rb

Instance Method Summary collapse

Constructor Details

#initialize(delegate) ⇒ DefaultDirection

Returns a new instance of DefaultDirection.



35
36
37
# File 'lib/data_mapper/sql_finders/query.rb', line 35

def initialize(delegate)
  @delegate = delegate
end

Instance Method Details

#dupObject



39
40
41
# File 'lib/data_mapper/sql_finders/query.rb', line 39

def dup
  self.class.new(@delegate.dup)
end