Module: Card::Set::All::Utils
- Extended by:
- Card::Set
- Defined in:
- tmpsets/set/mod001-01_core/all/utils.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Methods included from Card::Set
abstract_set?, all_set?, clean_empty_module_from_hash, clean_empty_modules, define_on_format, each_format, ensure_set, extended, format, include_set, include_set_formats, process_base_module_list, process_base_modules, register_set, register_set_format, shortname, stage_method, view, write_tmp_file
Methods included from Trait
#card_accessor, #card_reader, #card_writer
Methods included from Event
Instance Method Details
#debug_type ⇒ Object
98 99 100 |
# File 'tmpsets/set/mod001-01_core/all/utils.rb', line 98 def debug_type "#{type_code || 'no code'}:#{type_id}" end |
#inspect ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'tmpsets/set/mod001-01_core/all/utils.rb', line 106 def inspect = [] << 'trash' if trash << 'new' if new_card? << 'frozen' if frozen? << 'readonly' if readonly? << 'virtual' if @virtual << 'set_mods_loaded' if @set_mods_loaded = errors.any? ? "<E*#{errors. * ', '}*>" : '' "#<Card##{id}[#{debug_type}](#{name})#{}{#{ * ','}}" end |
#to_s ⇒ Object
102 103 104 |
# File 'tmpsets/set/mod001-01_core/all/utils.rb', line 102 def to_s "#<#{self.class.name}[#{debug_type}]#{attributes['name']}>" end |