Module: Tundengine::Move

Included in:
Cards::Card, Declarations::Base
Defined in:
lib/tundengine/move.rb

Instance Method Summary collapse

Instance Method Details

#self_or_yieldObject



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

def self_or_yield
  self
end

#yield_self_or_lock!(node) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



4
5
6
# File 'lib/tundengine/move.rb', line 4

def yield_self_or_lock!(node)
  yield self
end