Class: Faker::Hacker

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/hacker.rb

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

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, translate, unique, with_locale

Class Method Details

.abbreviationString

Short technical abbreviations.

Examples:

Faker::Hacker.abbreviation #=> "RAM"

Returns:



34
35
36
# File 'lib/faker/default/hacker.rb', line 34

def abbreviation
  fetch('hacker.abbreviation')
end

.adjectiveString

Hacker-centric adjectives.

Examples:

Faker::Hacker.adjective #=> "open-source"

Returns:



47
48
49
# File 'lib/faker/default/hacker.rb', line 47

def adjective
  fetch('hacker.adjective')
end

.ingverbString

Produces a verb that ends with ‘-ing’.

Examples:

Faker::Hacker.ingverb #=> "synthesizing"

Returns:



86
87
88
# File 'lib/faker/default/hacker.rb', line 86

def ingverb
  fetch('hacker.ingverb')
end

.nounString

Only the best hacker-related nouns.

Examples:

Faker::Hacker.noun #=> "bandwidth"

Returns:



60
61
62
# File 'lib/faker/default/hacker.rb', line 60

def noun
  fetch('hacker.noun')
end

.phrasesObject



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_smartString

Produces something smart.

Examples:

Faker::Hacker.say_something_smart
  #=> "Try to compress the SQL interface, maybe it will program the back-end hard drive!"

Returns:



21
22
23
# File 'lib/faker/default/hacker.rb', line 21

def say_something_smart
  sample(phrases)
end

.verbString

Actions that hackers take.

Examples:

Faker::Hacker.verb #=> "bypass"

Returns:



73
74
75
# File 'lib/faker/default/hacker.rb', line 73

def verb
  fetch('hacker.verb')
end