Commits

Michael Granger committed 1b4ebdf

Fix for Ruby 2: don't memoize the inflector.

  • Participants
  • Parent commits a2394c2

Comments (0)

Files changed (2)

 # This is an RVM Project .rvmrc file, used to automatically load the ruby
 # development environment upon cd'ing into the directory
 
-environment_id="ruby-1.9.3@linguistics"
+environment_id="ruby-2.0.0@linguistics"
 rvmdir=${rvm_path:-$HOME/.rvm}
 gemset_file=".rvm.gems"
 

File lib/linguistics.rb

 
 			mixin = Module.new do
 				define_method( bibcode ) do
-					@__inflector ||= inflector.new( bibcode, self )
+					inflector.new( bibcode, self )
 				end
 				alias_method termcode, bibcode unless termcode.nil? || termcode.empty?
 				alias_method alpha2code, bibcode unless alpha2code.nil? || alpha2code.empty?