class DaedalSL::BlockQuery
Attributes
base[R]
parent[R]
Public Class Methods
build(parent, options, &block)
click to toggle source
# File lib/daedal-sl/block_query.rb, line 16 def build(parent, options, &block) result = new(parent, options) if block result.instance_eval(&block) end result.base end
new(parent, options)
click to toggle source
# File lib/daedal-sl/block_query.rb, line 6 def initialize(parent, options) @parent = parent @base = @query_type.new(options) end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
# File lib/daedal-sl/block_query.rb, line 11 def method_missing(method, *args, &block) @parent.send(method, *args, &block) end