Class: Predicated::Call

Inherits:
Operation show all
Defined in:
lib/predicated/lib/predicated/evaluate.rb,
lib/predicated/lib/predicated/simple_templated_predicate.rb,
lib/predicated/lib/predicated/simple_templated_predicate.rb

Direct Known Subclasses

AutogenCall

Instance Attribute Summary

Attributes inherited from Operation

#method_sym

Attributes inherited from Binary

#left, #right

Class Method Summary collapse

Instance Method Summary collapse

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

#to_json_str

Methods included from Binary::ValueEquality

#==

Methods included from Binary::FlipThroughMe

#each

Methods included from PrintSupport

#inspect

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/lib/predicated/evaluate.rb', line 36

def initialize(left, method_sym, right=[])
  super
end

Class Method Details

.shorthandObject



32
33
34
# File 'lib/predicated/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/lib/predicated/simple_templated_predicate.rb', line 39

def fill_in(placeholder_replacement)
  self.class.new(placeholder_replacement, method_sym, right)
end

#to_sObject



40
41
42
# File 'lib/predicated/lib/predicated/evaluate.rb', line 40

def to_s
  "Call(#{left_to_s}.#{method_sym.to_s}#{right_to_s})"
end