Sha256: c0ca5205ea41ec7b12216b0d59ef0ea3ca6cb58e535e6a05b5fac8115af13a8e
Contents?: true
Size: 443 Bytes
Versions: 23
Compression:
Stored size: 443 Bytes
Contents
def to_s "#<#{self.class.name}[#{debug_type}]#{attributes['name']}>" end def inspect error_messages = errors.any? ? "<E*#{errors.full_messages * ', '}*>" : "" "#<Card##{id}[#{debug_type}](#{name})#{error_messages}{#{inspect_tags * ','}}" end private def inspect_tags %w[trash new frozen readonly virtual set_mods_loaded].map do |tag| tag if send "#{tag}?" end.compact end def debug_type "#{type_code || ''}:#{type_id}" end
Version data entries
23 entries across 23 versions & 1 rubygems