class Cattri::Attribute
def allowed_methods
-
(Array
- a list of method names)
def allowed_methods [name, (:"#{name}=" if writable?), (:"#{name}?" if with_predicate?)].compact.freeze end
(Array)
- a list of method names
def allowed_methods [name, (:"#{name}=" if writable?), (:"#{name}?" if with_predicate?)].compact.freeze end