Method: RPath::Where#initialize
- Defined in:
- lib/rpath/expressions.rb
#initialize(prior, conditions) ⇒ Where #initialize(prior) {|vertex| ... } ⇒ Where
Returns a new instance of Where.
222 223 224 225 226 227 |
# File 'lib/rpath/expressions.rb', line 222 def initialize(prior, conditions = {}, &selector) super() @prior = prior @selector = block_given? ? selector : nil @conditions = block_given? ? nil : conditions end |