Class: Tundengine::Cards::Null

Inherits:
Card
  • Object
show all
Includes:
Singleton, NullMove
Defined in:
lib/tundengine/cards/null.rb

Instance Attribute Summary

Attributes inherited from Card

#rank, #suit

Instance Method Summary collapse

Methods included from NullMove

#self_or_yield, #yield_self_or_lock!

Methods inherited from Card

#beats?, #beats_same_suit?, #is_of_any_rank?, #is_of_any_suit?, #round_points, #to_s

Methods included from Move

#self_or_yield, #yield_self_or_lock!

Methods included from AlgebraicDataType

#==, #hash, #to_s

Constructor Details

#initializeNull

Returns a new instance of Null.



8
9
10
# File 'lib/tundengine/cards/null.rb', line 8

def initialize
  super(Ranks::Null.instance, Suits::Null.instance)
end

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/tundengine/cards/null.rb', line 12

def exists?
  false
end