mislav / hanna

More than just a new RDoc template
MIT License
234 stars 40 forks source link

Breaks on non-ascii characters in method name #5

Closed GerryG closed 5 years ago

GerryG commented 14 years ago

Example:

$ cat cucumber-0.3.99/examples/i18n/he/lib/calculator.rb
class Calculator
  def push(n)
    @args ||= []
    @args << n
  end

  def חבר
    @args.inject(0){|n,sum| sum+=n}
  end

  def חלק
    @args[0].to_f / @args[1].to_f
  end
end

And:

$ cat cucumber-0.3.99/examples/i18n/ar/lib/calculator.rb
# encoding: utf-8
class Calculator
  def push(n)
    @args ||= []
    @args << n
  end

  def جمع
    @args.inject(0){|n,sum| sum+=n}
  end
end