Module: Arelastic::Arities::Binary

Included in:
Nodes::Node
Defined in:
lib/arelastic/arities/binary.rb

Defined Under Namespace

Modules: Methods

Instance Method Summary collapse

Instance Method Details

#binary(predicate) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/arelastic/arities/binary.rb', line 4

def binary(predicate)
  @predicate = predicate
  include Methods

  singleton_class.class_eval do
    attr_reader :predicate
  end

  attr_reader :field, :value, :options
end