class Cattri::Attribute

def allowed_methods

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