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:

  • (String)

Available since:

  • 1.4.0



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:

  • (String)

Available since:

  • 1.4.0



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:

  • (String)

Available since:

  • 1.4.0



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:

  • (String)

Available since:

  • 1.4.0



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

def noun
  fetch('hacker.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:

  • (String)

Available since:

  • 1.4.0



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:

  • (String)

Available since:

  • 1.4.0



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

def verb
  fetch('hacker.verb')
end