Class: Path
- Inherits:
-
Object
- Object
- Path
- Defined in:
- ext/extconf.rb
Instance Method Summary collapse
- #include(parent, child) ⇒ Object
-
#initialize ⇒ Path
constructor
A new instance of Path.
- #joint(parent, child) ⇒ Object
Constructor Details
#initialize ⇒ Path
Returns a new instance of Path.
11 12 13 14 15 16 17 |
# File 'ext/extconf.rb', line 11 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
19 20 21 22 23 24 |
# File 'ext/extconf.rb', line 19 def include(parent, child) inc = joint(parent, child) $INCFLAGS += " -I\"#{inc}\"" $CFLAGS += " -I\"#{inc}\"" inc end |
#joint(parent, child) ⇒ Object
26 27 28 |
# File 'ext/extconf.rb', line 26 def joint(parent, child) parent + @file_separator + child end |