Sha256: 8667038731820866319b6fdba899319b0235738af0f8c076420af1362869b736

Contents?: true

Size: 562 Bytes

Versions: 16

Compression:

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

16 entries across 16 versions & 1 rubygems

Version Path
card-1.16.6 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.5 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.4 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.3 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.2 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.1 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.16.0 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.7 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.6 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.5 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.4 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.3 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.2 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.1 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.0 mod/01_core/set_pattern/07_type_plus_right.rb
card-1.15.pre2 mod/01_core/set_pattern/07_type_plus_right.rb