Method: PSD::LazyExecute#initialize

Defined in:
lib/psd/lazy_execute.rb

#initialize(obj, file) ⇒ LazyExecute

Returns a new instance of LazyExecute.



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/psd/lazy_execute.rb', line 4

def initialize(obj, file)
  @obj = obj
  @file = file

  @start_pos = @file.tell
  @loaded = false
  @load_method = nil
  @load_args = []
  @passthru = []

  PSD.logger.debug "Marked #{@obj.class.name} at position #{@start_pos} for lazy execution"
end