class CukeModeler::Model

A monkey patch that allows models to be queried directly by having them use this gem's query module.

Public Class Methods

new(source_text = nil) click to toggle source

Sets itself as the model's query_root. Otherwise, as per the un-patched method.

# File lib/cql/model_dsl.rb, line 17
def initialize(source_text = nil)
  original_initialize(source_text)

  @query_root = self
end
Also aliased as: original_initialize

Public Instance Methods

original_initialize(source_text = nil)

Hanging on to the original method so that it can be invoked and thus ensure that all of the normal, un-patched behavior occurs

Alias for: new