Sha256: a4053e38aca783b6b4ee285191f7357058d5e61778f20fc6dc8b36731b7f3c9b
Contents?: true
Size: 1.42 KB
Versions: 8
Compression:
Stored size: 1.42 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class All # Set: All cards (TemplateNest) # module TemplateNest; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-edit/set/all/template_nest.rb"; end module Format; module_parent.send :register_set_format, Card::Format, self; extend Card::Set::AbstractFormat view :template_nest, cache: :never, unknown: true do return "" unless voo.nest_name if voo.nest_name.to_name.field_only? with_nest_mode :normal do nest template_link_set_name, view: :template_link end else "{{#{voo.nest_syntax}}}" end end def template_link_set_name name = voo.nest_name.to_name if name.absolute? name.trait_name :self else template_link_set_name_for_relative_name name end end def template_link_set_name_for_relative_name name name = name.stripped.gsub(/^\+/, "") if (type = on_type_set) [type, name].to_name.trait_name :type_plus_right else name.to_name.trait_name :right end end def on_type_set return unless (tmpl_set_name = parent.card.name.trunk_name) && (tmpl_set_class_name = tmpl_set_name.tag_name) && (tmpl_set_class_card = Card[tmpl_set_class_name]) && (tmpl_set_class_card.codename == :type) tmpl_set_name.left_name end end end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-edit/set/all/template_nest.rb ~~
Version data entries
8 entries across 8 versions & 1 rubygems