Class: Predicated::Call
- Defined in:
- lib/predicated/evaluate.rb,
lib/predicated/simple_templated_predicate.rb,
lib/predicated/simple_templated_predicate.rb
Instance Attribute Summary
Attributes inherited from Operation
Attributes inherited from Binary
Class Method Summary collapse
Instance Method Summary collapse
- #fill_in(placeholder_replacement) ⇒ Object
-
#initialize(left, method_sym, right = []) ⇒ Call
constructor
A new instance of Call.
- #to_s ⇒ Object
Methods inherited from Operation
#==, #evaluate, register_verb_phrase, reset_verb_phrases, #to_arel, #to_json_struct, #to_negative_sentence, #to_sentence, #to_xml
Methods included from JsonStructToJsonStr
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
#initialize(left, method_sym, right = []) ⇒ Call
Returns a new instance of Call.
36 37 38 |
# File 'lib/predicated/evaluate.rb', line 36 def initialize(left, method_sym, right=[]) super end |
Class Method Details
.shorthand ⇒ Object
32 33 34 |
# File 'lib/predicated/evaluate.rb', line 32 def self.shorthand :Call end |
Instance Method Details
#fill_in(placeholder_replacement) ⇒ Object
39 40 41 |
# File 'lib/predicated/simple_templated_predicate.rb', line 39 def fill_in(placeholder_replacement) self.class.new(placeholder_replacement, method_sym, right) end |
#to_s ⇒ Object
40 41 42 |
# File 'lib/predicated/evaluate.rb', line 40 def to_s "Call(#{left_to_s}.#{method_sym.to_s}#{right_to_s})" end |