class Cattri::Attribute

def readonly?

Returns:
  • (Boolean) - whether the attribute is marked readonly
def readonly?
  return false if @options.expose == :none
  @options.expose == :read || final?
end