Class: Faker::Hacker
Overview
Port of shinytoylabs.com/jargon/ Are you having trouble writing tech-savvy dialogue for your latest screenplay? Worry not! Hollywood-grade technical talk is ready to fill out any form where you need to look smart.
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.abbreviation ⇒ String
Short technical abbreviations.
-
.adjective ⇒ String
Hacker-centric adjectives.
-
.ingverb ⇒ String
Produces a verb that ends with ‘-ing’.
-
.noun ⇒ String
Only the best hacker-related nouns.
- .phrases ⇒ Object
-
.say_something_smart ⇒ String
Produces something smart.
-
.verb ⇒ String
Actions that hackers take.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.abbreviation ⇒ String
Short technical abbreviations.
34 35 36 |
# File 'lib/faker/default/hacker.rb', line 34 def abbreviation fetch('hacker.abbreviation') end |
.adjective ⇒ String
Hacker-centric adjectives.
47 48 49 |
# File 'lib/faker/default/hacker.rb', line 47 def adjective fetch('hacker.adjective') end |
.ingverb ⇒ String
Produces a verb that ends with ‘-ing’.
86 87 88 |
# File 'lib/faker/default/hacker.rb', line 86 def ingverb fetch('hacker.ingverb') end |
.noun ⇒ String
Only the best hacker-related nouns.
60 61 62 |
# File 'lib/faker/default/hacker.rb', line 60 def noun fetch('hacker.noun') end |
.phrases ⇒ Object
91 92 93 94 95 96 97 98 99 100 |
# File 'lib/faker/default/hacker.rb', line 91 def phrases ["If we #{verb} the #{noun}, we can get to the #{abbreviation} #{noun} through the #{adjective} #{abbreviation} #{noun}!", "We need to #{verb} the #{adjective} #{abbreviation} #{noun}!", "Try to #{verb} the #{abbreviation} #{noun}, maybe it will #{verb} the #{adjective} #{noun}!", "You can't #{verb} the #{noun} without #{ingverb} the #{adjective} #{abbreviation} #{noun}!", "Use the #{adjective} #{abbreviation} #{noun}, then you can #{verb} the #{adjective} #{noun}!", "The #{abbreviation} #{noun} is down, #{verb} the #{adjective} #{noun} so we can #{verb} the #{abbreviation} #{noun}!", "#{ingverb} the #{noun} won't do anything, we need to #{verb} the #{adjective} #{abbreviation} #{noun}!".capitalize, "I'll #{verb} the #{adjective} #{abbreviation} #{noun}, that should #{noun} the #{abbreviation} #{noun}!"] end |
.say_something_smart ⇒ String
Produces something smart.
21 22 23 |
# File 'lib/faker/default/hacker.rb', line 21 def say_something_smart sample(phrases) end |
.verb ⇒ String
Actions that hackers take.
73 74 75 |
# File 'lib/faker/default/hacker.rb', line 73 def verb fetch('hacker.verb') end |