Method: ClassSource::Index#initialize

Defined in:
lib/class_source/index.rb

#initialize(target_class, options = {}) ⇒ Index

Returns a new instance of Index.

Parameters:

  • options, (Hash)

    may include a :file => ‘path_to_expected_source’ param for tricky classes. Classes with no methods will need this hint to be sourced correctly.



6
7
8
9
# File 'lib/class_source/index.rb', line 6

def initialize(target_class, options = {})
  @target_class = target_class
  @options = options
end