Method: Eapi::Methods::Properties::InstanceMethods#yield_final_value_for
- Defined in:
- lib/eapi/methods/properties.rb
#yield_final_value_for(property) ⇒ Object
will yield the converted value if it is not to be ignored, will yield the default value if it is set and the converted value is to be ignored will not yield anything otherwise
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/eapi/methods/properties.rb', line 36 def yield_final_value_for(property) val = converted_value_for(property) accepted = !to_be_ignored?(val, property) if accepted yield val elsif self.class.default_value_for?(property) yield self.class.default_value_for(property) end end |