Module: Bootsnap::CompileCache::ISeq::InstructionSequenceMixin

Defined in:
lib/bootsnap/compile_cache/iseq.rb

Instance Method Summary collapse

Instance Method Details

#compile_option=(hash) ⇒ Object



191
192
193
194
# File 'lib/bootsnap/compile_cache/iseq.rb', line 191

def compile_option=(hash)
  super
  Bootsnap::CompileCache::ISeq.compile_option_updated
end

#load_iseq(path) ⇒ Object



182
183
184
185
186
187
188
189
# File 'lib/bootsnap/compile_cache/iseq.rb', line 182

def load_iseq(path)
  Bootsnap::CompileCache::ISeq.fetch(path.to_s)
rescue RuntimeError => error
  if error.message.include?("unmatched platform")
    puts("unmatched platform for file #{path}")
  end
  raise
end