Module: Tundengine::NullMove

Included in:
Cards::Null, Declarations::Null
Defined in:
lib/tundengine/null_move.rb

Instance Method Summary collapse

Instance Method Details

#self_or_yieldObject



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

def self_or_yield
  yield
end

#yield_self_or_lock!(node) ⇒ Object



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

def yield_self_or_lock!(node)
  node.lock!
end