Top Level Namespace

Defined Under Namespace

Modules: BitClust, HTMLUtils, RI Classes: ApplicationError, BCMethodEntry, Ent, Formatter, LineInput, Object, RiClassNotFound, RiDatabase, RiMethodEntry, String

Instance Method Summary collapse

Instance Method Details

#fopen(*args, &block) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/bitclust/compat.rb', line 38

def fopen(*args, &block)
  option = args[1]
  if option and !Object.const_defined?(:Encoding)
    args[1] = option.sub(/:.*\z/, '')
  end
  File.open(*args, &block)
end

#libdirObject



9
10
11
# File 'lib/bitclust/runner.rb', line 9

def libdir
  Pathname.new(__FILE__).realpath.dirname.parent.cleanpath
end