SHARE
TWEET

Untitled

a guest Mar 16th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. awesomeville:~ soawesomeman$ irb
  2. irb(main):001:0> require 'rubygems'
  3. => true
  4. irb(main):002:0> require 'addressable/uri'
  5. => true
  6. irb(main):003:0> require 'pp'
  7. => true
  8. irb(main):004:0> beer = Addressable::URI.new
  9. => #<Addressable::URI:0xc37abc URI:>
  10. irb(main):005:0> pp (beer.methods - Object.methods).sort
  11. ["+",
  12.  "absolute?",
  13.  "authority",
  14.  "authority=",
  15.  "basename",
  16.  "display_uri",
  17.  "extname",
  18.  "fragment",
  19.  "fragment=",
  20.  "host",
  21.  "host=",
  22.  "inferred_port",
  23.  "ip_based?",
  24.  "join",
  25.  "join!",
  26.  "merge",
  27.  "merge!",
  28.  "normalize",
  29.  "normalize!",
  30.  "normalized_authority",
  31.  "normalized_fragment",
  32.  "normalized_host",
  33.  "normalized_password",
  34.  "normalized_path",
  35.  "normalized_port",
  36.  "normalized_query",
  37.  "normalized_scheme",
  38.  "normalized_user",
  39.  "normalized_userinfo",
  40.  "omit",
  41.  "omit!",
  42.  "password",
  43.  "password=",
  44.  "path",
  45.  "path=",
  46.  "port",
  47.  "port=",
  48.  "query",
  49.  "query=",
  50.  "query_values",
  51.  "query_values=",
  52.  "relative?",
  53.  "route_from",
  54.  "route_to",
  55.  "scheme",
  56.  "scheme=",
  57.  "to_hash",
  58.  "to_str",
  59.  "user",
  60.  "user=",
  61.  "userinfo",
  62.  "userinfo=",
  63.  "validation_deferred",
  64.  "validation_deferred="]
  65. => nil
  66. irb(main):006:0>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top