Method: Nimo::GameObject#configure_with

Defined in:
lib/nimo/game_object.rb

#configure_with(config_options) ⇒ Object

config_options is a hash that can take the following keys: :x, :y, :width, :height. The key restriction is not being enforced.



30
31
32
# File 'lib/nimo/game_object.rb', line 30

def configure_with(config_options)
  config_options.each { |attribute, value| instance_variable_set("@#{attribute}", value) }
end