Changeset 86 for trunk/.irbrc

Show
Ignore:
Timestamp:
07/08/08 07:25:54 (5 months ago)
Author:
deveiant
Message:

Checkpoint commit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/.irbrc

    r70 r86  
    1111 
    1212def colored( prompt, *args ) 
    13     return ansiCode( *(args.flatten) ) + prompt + ansiCode( 'reset' ) 
     13    return ansi_code( *(args.flatten) ) + prompt + ansi_code( 'reset' ) 
    1414end 
    1515 
     
    2626# Try to require the 'wordnet' library 
    2727begin 
     28    require 'pathname' 
     29    basedir = Pathname.new( __FILE__ ).dirname 
     30    datadir = basedir + 'ruby-wordnet' 
     31     
    2832    puts "Requiring 'wordnet'..." 
    2933    require 'wordnet' 
    3034 
    3135    puts "Instantiating the lexicon as $lex" 
    32     $lex = WordNet::Lexicon.new 
     36    $lex = WordNet::Lexicon.new( datadir ) 
    3337rescue => e 
    3438    $stderr.puts "Ack! WordNet failed to load: #{e.message}\n\t" +