Sha256: 331bcefd16920da3f60cc43743540ce4a4504dbaa3fb5b6f172d09b5096bbfa1

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

@@options = {
  :junction_only=>true,
  :assigns_type=>true,
  :anchor_parts_count=>2
}

def label name
  %{All "+#{name.to_name.tag}" cards on "#{name.to_name.left_name}" cards}
end

def prototype_args anchor
  { :name=>"+#{anchor.tag}", :supercard=>Card.new( :name=>'*dummy', :type=>anchor.trunk_name ) }
end

def anchor_name card
  left = card.left
  type_name = (left && left.type_name) || Card[ Card.default_type_id ].name
  "#{type_name}+#{card.cardname.tag}"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wagn-1.14.9 mod/01_core/set_pattern/07_type_plus_right.rb
wagn-1.14.8 mod/01_core/set_pattern/07_type_plus_right.rb
wagn-1.14.7 mod/01_core/set_pattern/07_type_plus_right.rb
wagn-1.14.6 mod/01_core/set_pattern/07_type_plus_right.rb
wagn-1.14.5 mod/01_core/set_pattern/07_type_plus_right.rb