Sha256: 80d8c81b30b46f96996ba1830632b61a498dba830a87fa59b2c48e8046ec4302

Contents?: true

Size: 288 Bytes

Versions: 12

Compression:

Stored size: 288 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 << Card.fetch(name, :self) if with_self
    sets << Card.fetch(name, :right) if known? && simple?
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
card-mod-rules-0.18.1 set/all/related_sets.rb
card-mod-rules-0.18.0 set/all/related_sets.rb
card-mod-rules-0.17.0 set/all/related_sets.rb
card-mod-rules-0.16.0 set/all/related_sets.rb
card-mod-rules-0.15.6 set/all/related_sets.rb
card-mod-rules-0.15.5 set/all/related_sets.rb
card-mod-rules-0.15.4 set/all/related_sets.rb
card-mod-rules-0.15.3 set/all/related_sets.rb
card-mod-rules-0.15.2.pre1 set/all/related_sets.rb
card-mod-rules-0.15.1.1 set/all/related_sets.rb
card-mod-rules-0.15.1 set/all/related_sets.rb
card-mod-rules-0.15.0 set/all/related_sets.rb