Sha256: 53fb6b05c561778ddd2396bc4189ae48749bff040495ef65fa6cb7331d4d7418

Contents?: true

Size: 501 Bytes

Versions: 13

Compression:

Stored size: 501 Bytes

Contents

def related_sets with_self=false
  # refers to sets that users may configure from the current card -
  # NOT to sets to which the current card belongs

  [].tap do |sets|
    sets << [self_set_name, self_set_label] if with_self
    sets << [right_set_name, right_set_label] if known? && simple?
  end
end

def self_set_name
  Name[name, :self]
end

def self_set_label
  Card::Set::Self.label name
end

def right_set_name
  Name[name, :right]
end

def right_set_label
  Card::Set::Right.label name
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
card-mod-rules-0.14.2 set/all/related_sets.rb
card-mod-rules-0.14.1 set/all/related_sets.rb
card-mod-rules-0.14.0 set/all/related_sets.rb
card-mod-rules-0.13.4 set/all/related_sets.rb
card-mod-rules-0.13.3 set/all/related_sets.rb
card-mod-rules-0.13.2 set/all/related_sets.rb
card-mod-rules-0.13.1 set/all/related_sets.rb
card-mod-rules-0.13.0 set/all/related_sets.rb
card-mod-rules-0.11.7 set/all/related_sets.rb
card-mod-rules-0.12.0 set/all/related_sets.rb
card-mod-rules-0.11.6 set/all/related_sets.rb
card-mod-rules-0.11.5 set/all/related_sets.rb
card-mod-rules-0.11.4 set/all/related_sets.rb