Module: Settings::Setting::Assignment::Object
- Extended by:
- Settings::Setting::Assignment
- Defined in:
- lib/settings/setting/assignment.rb
Class Method Summary collapse
Methods included from Settings::Setting::Assignment
assign, assign_value, assignable?, setter_name, setting?
Class Method Details
.assure_settable(receiver, attribute, strict = true) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/settings/setting/assignment.rb', line 35 def self.assure_settable(receiver, attribute, strict=true) if strict setting = setting?(receiver, attribute) unless setting return false end end assignable = assignable? receiver, attribute unless assignable return false end true end |