Module: Selection

Includes:
Coercion
Included in:
Brine
Defined in:
lib/brine/selector.rb

Overview

Module

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Coercion

#coercer

Instance Attribute Details

#selectorObject (readonly)

Returns the value of attribute selector.



45
46
47
# File 'lib/brine/selector.rb', line 45

def selector
  @selector
end

Instance Method Details

#use_selector(selector) ⇒ Object



47
48
49
50
# File 'lib/brine/selector.rb', line 47

def use_selector(selector)
  selector.coercer = coercer
  @selector = selector
end