Class: Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk2applib.rb

Overview

If Dir.tmpdir gets called, load up 'tmpdir'

Class Method Summary collapse

Class Method Details

.method_missing(missing, *arguments, &block) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/gtk2applib.rb', line 9

def self.method_missing(missing, *arguments, &block)
  if missing == :tmpdir then
    require 'tmpdir'
    self.method(:tmpdir).call(*arguments, &block)
  else
    super
  end
end