Top Level Namespace

Defined Under Namespace

Modules: FB64

Instance Method Summary collapse

Instance Method Details

#darwin?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'ext/fb64/extconf.rb', line 12

def darwin?
  RbConfig::CONFIG['target_os'] =~ /darwin/
end

#nix?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'ext/fb64/extconf.rb', line 20

def nix?
  ! (windows? || solaris? || darwin?)
end

#openbsd?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'ext/fb64/extconf.rb', line 16

def openbsd?
  RbConfig::CONFIG['target_os'] =~ /openbsd/
end

#solaris?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'ext/fb64/extconf.rb', line 8

def solaris?
  RbConfig::CONFIG['target_os'] =~ /solaris/
end

#windows?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'ext/fb64/extconf.rb', line 4

def windows?
  RbConfig::CONFIG['target_os'] =~ /mingw32|mswin/
end