Module: Serega::SeregaPlugins::If::PlanPointInstanceMethods
- Defined in:
- lib/serega/plugins/if/if.rb
Overview
Serega::SeregaPlanPoint additional/patched instance methods
Instance Method Summary collapse
-
#satisfy_if_conditions?(obj, ctx) ⇒ Boolean
Should we show attribute or not Conditions for this checks are specified by :if and :unless attribute options.
-
#satisfy_if_value_conditions?(value, ctx) ⇒ Boolean
Should we show attribute with specific value or not.
Instance Method Details
#satisfy_if_conditions?(obj, ctx) ⇒ Boolean
Returns Should we show attribute or not Conditions for this checks are specified by :if and :unless attribute options.
187 188 189 |
# File 'lib/serega/plugins/if/if.rb', line 187 def satisfy_if_conditions?(obj, ctx) check_if_unless(obj, ctx, :if, :unless) end |
#satisfy_if_value_conditions?(value, ctx) ⇒ Boolean
Returns Should we show attribute with specific value or not. Conditions for this checks are specified by :if_value and :unless_value attribute options.
195 196 197 |
# File 'lib/serega/plugins/if/if.rb', line 195 def satisfy_if_value_conditions?(value, ctx) check_if_unless(value, ctx, :if_value, :unless_value) end |