Module: AbstractReflection::ClassMethods

Defined in:
lib/abstract_reflection.rb

Instance Method Summary collapse

Instance Method Details

#codebaseArray<Class>, Class

A mirror has to reflect on something. file mirrors on files or directories, VM mirrors on the running VM or a remote instance and so on… This method allows you to query what kind of object you need to prepare to use it.

Returns:

  • (Array<Class>, Class)

    the class(es) that this reflective api can work on

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/abstract_reflection.rb', line 13

def codebase
  raise NotImplementedError, "#{self} should have implemented #codebase"
end