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>

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.

1 participant