Sha256: 372f437ce411168e9b63c016834290e090cdf37178f5f4a76e45d26dc688dbc9

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 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

def follow_label name
  %{all  "+#{name.to_name.tag}" on "#{name.to_name.left_name}s"}
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
card-1.16.15 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.14 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.13 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.12 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.11 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.10 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.9 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.8 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.7 mod/01_core/set_pattern/07_type_plus_right.rb