Class: Predicated::AutogenCall
- Defined in:
- lib/predicated/lib/predicated/autogen_call.rb
Instance Attribute Summary
Attributes inherited from Operation
Attributes inherited from Binary
Instance Method Summary collapse
Methods inherited from Call
#fill_in, #initialize, shorthand
Methods inherited from Operation
#==, #evaluate, #fill_in, #initialize, register_verb_phrase, reset_verb_phrases, #to_arel, #to_json_struct, #to_negative_sentence, #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
This class inherits a constructor from Predicated::Call
Instance Method Details
#to_s ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/predicated/lib/predicated/autogen_call.rb', line 7 def to_s method_cameled = StringUtils.uppercamelize(method_sym.to_s) if Predicated.const_defined?(:SimpleTemplatedShorthand) && left == Placeholder "#{method_cameled}#{right_to_s}" else left_str = left_to_s right_str = right_to_s right_str = "," + right_str unless right_str.empty? "#{method_cameled}(#{left_str}#{right_str})" end end |