Skip to content

Conversation

@HoneyryderChuck
Copy link
Contributor

class A
  def initialize
    @str = "http://example.com"
  end

  def to_str
    @str 
  end
end

URI(A.new) #=> #<URI::HTTP http://exaple.com>

Copy link
Collaborator

@ksss ksss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ksss ksss merged commit 10c6cc1 into ruby:master Jan 26, 2026
20 checks passed
@ksss ksss added this to the RBS 4.0 milestone Jan 26, 2026
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

Successfully merging this pull request may close these issues.

2 participants