Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.language String method does not work on Ruby 2.4.0 #44

Open
jm3 opened this issue Nov 9, 2017 · 1 comment
Open

.language String method does not work on Ruby 2.4.0 #44

jm3 opened this issue Nov 9, 2017 · 1 comment

Comments

@jm3
Copy link

jm3 commented Nov 9, 2017

Instead Whatlanguage throws undefined method `language' for "foo":String:

NoMethodError: undefined method `language' for "Deux autres personnes ont été arrêtées durant la nuit":String
from (irb):26:in `block in irb_binding'
from (irb):26:in `each'
from (irb):26
from ~/.rvm/rubies/ruby-2.4.0/bin/irb:11:in `<top (required)>'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/cli/exec.rb:75:in `load'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/cli/exec.rb:75:in `kernel_load'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/cli/exec.rb:28:in `run'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/cli.rb:424:in `exec'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/cli.rb:27:in `dispatch'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/cli.rb:18:in `start'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/exe/bundle:30:in `block in <top (required)>'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
from ~/.rvm/gems/ruby-2.4.0/gems/bundler/exe/bundle:22:in `<top (required)>'
from /usr/local/bin/bundle:22:in `load'
from /usr/local/bin/bundle:22:in `<main>'
from ~/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'
from ~/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>'
@yun-cn
Copy link

yun-cn commented Mar 2, 2018

require 'whatlanguage/string'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants