Changeset 86 for trunk/.irbrc
- Timestamp:
- 07/08/08 07:25:54 (5 months ago)
- Files:
-
- 1 modified
-
trunk/.irbrc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.irbrc
r70 r86 11 11 12 12 def colored( prompt, *args ) 13 return ansi Code( *(args.flatten) ) + prompt + ansiCode( 'reset' )13 return ansi_code( *(args.flatten) ) + prompt + ansi_code( 'reset' ) 14 14 end 15 15 … … 26 26 # Try to require the 'wordnet' library 27 27 begin 28 require 'pathname' 29 basedir = Pathname.new( __FILE__ ).dirname 30 datadir = basedir + 'ruby-wordnet' 31 28 32 puts "Requiring 'wordnet'..." 29 33 require 'wordnet' 30 34 31 35 puts "Instantiating the lexicon as $lex" 32 $lex = WordNet::Lexicon.new 36 $lex = WordNet::Lexicon.new( datadir ) 33 37 rescue => e 34 38 $stderr.puts "Ack! WordNet failed to load: #{e.message}\n\t" +
