Skip to content

Instantly share code, notes, and snippets.

@smathy
Last active August 29, 2015 14:17
Show Gist options
  • Save smathy/c23fe7b0271aa0b60b79 to your computer and use it in GitHub Desktop.
Save smathy/c23fe7b0271aa0b60b79 to your computer and use it in GitHub Desktop.
Loading development environment (Rails 4.1.9)
[1] pry(main)> module Faker
[1] pry(main)* class Internet
[1] pry(main)* class << self
[1] pry(main)* def twitter_handle(specifier = nil)
[1] pry(main)* # Get a twitter handle using the udnerlying username.
[1] pry(main)* '@' + user_name(specifier, %w(. _ -))
[1] pry(main)* end
[1] pry(main)* end
[1] pry(main)* end
[1] pry(main)* end
=> :twitter_handle
[2] pry(main)> Faker::Internet.twitter_handle 'foo'
=> "@foo"
[3] pry(main)> Faker::Internet.password
=> "magnamvoluptasreiciendis"
[4] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment