Method: Arrow::Injectable.extend_object

Defined in:
lib/arrow/mixins.rb

.extend_object(obj) ⇒ Object

Make the given object (which must be a Class) injectable.

Raises:

  • (ArgumentError)


343
344
345
346
347
348
# File 'lib/arrow/mixins.rb', line 343

def self::extend_object( obj )
  raise ArgumentError, "can't make a #{obj.class} Injectable" unless
    obj.is_a?( Class )
  super
  @derivatives[ obj.name ] = obj
end