Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/tcell_agent/instrumentation/monkey_patches/ruby_2/file.rb,
lib/tcell_agent/instrumentation/monkey_patches/ruby_3/file.rb

Instance Method Summary collapse

Instance Method Details

#new(*args, **kwargs, &block) ⇒ Object



5
6
7
8
9
# File 'lib/tcell_agent/instrumentation/monkey_patches/ruby_2/file.rb', line 5

def new(*args, &block)
  TCellAgent::Instrumentation::Lfi.default_open_handler(args)

  tcell_original_new(*args, &block)
end

#open(*args, **kwargs, &block) ⇒ Object



14
15
16
17
18
# File 'lib/tcell_agent/instrumentation/monkey_patches/ruby_2/file.rb', line 14

def open(*args, &block)
  TCellAgent::Instrumentation::Lfi.default_open_handler(args)

  tcell_original_open(*args, &block)
end

#tcell_original_newObject



4
5
6
7
8
# File 'lib/tcell_agent/instrumentation/monkey_patches/ruby_2/file.rb', line 4

def new(*args, &block)
  TCellAgent::Instrumentation::Lfi.default_open_handler(args)

  tcell_original_new(*args, &block)
end

#tcell_original_openObject



13
14
15
16
17
# File 'lib/tcell_agent/instrumentation/monkey_patches/ruby_2/file.rb', line 13

def open(*args, &block)
  TCellAgent::Instrumentation::Lfi.default_open_handler(args)

  tcell_original_open(*args, &block)
end