Skip to content

Instantly share code, notes, and snippets.

@awesome
Created December 28, 2009 03:52
Show Gist options
  • Save awesome/264519 to your computer and use it in GitHub Desktop.
Save awesome/264519 to your computer and use it in GitHub Desktop.
addressable/uri methods
awesomeville:~ soawesomeman$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'addressable/uri'
=> true
irb(main):003:0> require 'pp'
=> true
irb(main):004:0> beer = Addressable::URI.new
=> #<Addressable::URI:0xc37abc URI:>
irb(main):005:0> pp (beer.methods - Object.methods).sort
["+",
"absolute?",
"authority",
"authority=",
"basename",
"display_uri",
"extname",
"fragment",
"fragment=",
"host",
"host=",
"inferred_port",
"ip_based?",
"join",
"join!",
"merge",
"merge!",
"normalize",
"normalize!",
"normalized_authority",
"normalized_fragment",
"normalized_host",
"normalized_password",
"normalized_path",
"normalized_port",
"normalized_query",
"normalized_scheme",
"normalized_user",
"normalized_userinfo",
"omit",
"omit!",
"password",
"password=",
"path",
"path=",
"port",
"port=",
"query",
"query=",
"query_values",
"query_values=",
"relative?",
"route_from",
"route_to",
"scheme",
"scheme=",
"to_hash",
"to_str",
"user",
"user=",
"userinfo",
"userinfo=",
"validation_deferred",
"validation_deferred="]
=> nil
irb(main):006:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment