Class: Arguments
- Defined in:
- lib/quarter_system/argumentation/arguments.rb
Instance Attribute Summary collapse
-
#arguer ⇒ Object
Returns the value of attribute arguer.
Class Method Summary collapse
Instance Method Summary collapse
-
#find_with_reqs(reqs = {}) ⇒ Object
kondition needs to be a string to be evaluated when appended to the element.
Instance Attribute Details
#arguer ⇒ Object
Returns the value of attribute arguer.
7 8 9 |
# File 'lib/quarter_system/argumentation/arguments.rb', line 7 def arguer @arguer end |
Class Method Details
.new(args) ⇒ Object
2 3 4 5 |
# File 'lib/quarter_system/argumentation/arguments.rb', line 2 def self.new(args) arguer = args.last.is_a?(Class) && args.pop super.tap {|args_obj| args_obj.arguer = arguer } end |
Instance Method Details
#find_with_reqs(reqs = {}) ⇒ Object
kondition needs to be a string to be evaluated when appended to the element. Refer to Arguments#passes_condition?
10 11 12 |
# File 'lib/quarter_system/argumentation/arguments.rb', line 10 def find_with_reqs(reqs={}) # Arguments itself can be any length. But these three are things allowed to be defined. [ total_match_value(reqs[:class], reqs[:condition]), quey_match_value(reqs[:quey]), default_value_for(reqs[:quey]) ].compact.first end |