Module: Card::Set::All::States::ClassMethods

Defined in:
tmpsets/set/mod003-core/all/states.rb

Overview

  • new (or unreal) cards are either unknown or virtual

Instance Method Summary collapse

Instance Method Details

#known?(mark) ⇒ Boolean

Returns:

  • (Boolean)


30
31
32
# File 'tmpsets/set/mod003-core/all/states.rb', line 30

def known? mark
  fetch(mark).present?
end

#real?(mark) ⇒ Boolean Also known as: exist?, exists?

Returns:

  • (Boolean)


24
25
26
# File 'tmpsets/set/mod003-core/all/states.rb', line 24

def real? mark
  quick_fetch(mark).present?
end