Method: Andromeda::Atom::Region#enter

Defined in:
lib/andromeda/atom.rb

#enter(amount = 1) ⇒ Object

Raises:

  • (ArgumentError)


65
66
67
68
69
# File 'lib/andromeda/atom.rb', line 65

def enter(amount = 1)
  raise ArgumentError unless amount.kind_of?(Fixnum)
  raise ArgumentError unless amount >= 0
  @count.update { |v| v + amount }
end