Class: Path

Inherits:
Object
  • Object
show all
Defined in:
ext/extconf.rb

Instance Method Summary collapse

Constructor Details

#initializePath

Returns a new instance of Path.



10
11
12
13
14
15
16
# File 'ext/extconf.rb', line 10

def initialize()
  if File::ALT_SEPARATOR.nil?
    @file_separator = File::SEPARATOR
  else
    @file_separator = File::ALT_SEPARATOR
  end
end

Instance Method Details

#include(parent, child) ⇒ Object



18
19
20
21
22
23
# File 'ext/extconf.rb', line 18

def include(parent, child)
  inc = joint(parent, child)
  $INCFLAGS += " -I\"#{inc}\""
  $CFLAGS += " -I\"#{inc}\""
  inc
end

#joint(parent, child) ⇒ Object



25
26
27
# File 'ext/extconf.rb', line 25

def joint(parent, child)
  parent + @file_separator + child
end