Skip to content

Can't call escape method on Ruby 3.0.0 #14

@zacky1972

Description

@zacky1972

I can't call escape method of URI on Ruby 3.0.0 as follows:

% ruby --version
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19]
% irb
irb(main):001:0> p URI.espace('http://images.google.co.jp/images?q=モナリザ&ie=E
UC-JP')
Traceback (most recent call last):
        4: from /Users/zacky/.rbenv/versions/3.0.0/bin/irb:23:in `<main>'
        3: from /Users/zacky/.rbenv/versions/3.0.0/bin/irb:23:in `load'
        2: from /Users/zacky/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/irb-1.3.0/exe/irb:11:in `<top (required)>'
        1: from (irb):1:in `<main>'
NoMethodError (undefined method `espace' for URI:Module)

I feel it has some problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions