Class: Predicated::Equal
- Defined in:
- lib/predicated/to/xml.rb,
lib/predicated/to/arel.rb,
lib/predicated/to/json.rb,
lib/predicated/to/solr.rb,
lib/predicated/evaluate.rb,
lib/predicated/predicate.rb more...
Instance Attribute Summary
Attributes inherited from Operation
Attributes inherited from Binary
Class Method Summary collapse
Instance Method Summary collapse
- #arel_class ⇒ Object
-
#initialize(left, right) ⇒ Equal
constructor
A new instance of Equal.
- #to_solr ⇒ Object
Methods inherited from Operation
#==, #evaluate, #fill_in, register_verb_phrase, reset_verb_phrases, #to_arel, #to_json_struct, #to_negative_sentence, #to_s, #to_sentence, #to_xml
Methods included from JsonStructToJsonStr
Methods inherited from Binary
Methods included from Binary::ValueEquality
Methods included from Binary::FlipThroughMe
Methods included from PrintSupport
Methods inherited from Predicate
from_callable_object, from_json_str, from_json_struct, from_ruby_code_string, from_url_part, from_xml
Constructor Details
permalink #initialize(left, right) ⇒ Equal
Returns a new instance of Equal.
25 |
# File 'lib/predicated/evaluate.rb', line 25 def initialize(left, right); super(left, :==, right); end |
Class Method Details
permalink .shorthand ⇒ Object
[View source]
86 |
# File 'lib/predicated/predicate.rb', line 86 def self.shorthand; :Eq end |
Instance Method Details
permalink #arel_class ⇒ Object
[View source]
34 |
# File 'lib/predicated/to/arel.rb', line 34 def arel_class; Arel::Predicates::Equality end |
permalink #to_solr ⇒ Object
[View source]
9 |
# File 'lib/predicated/to/solr.rb', line 9 def to_solr; "#{left}:#{right}" end |