Module: Mirogemtest

Defined in:
lib/mirogemtest.rb,
lib/mirogemtest/version.rb

Constant Summary collapse

QUOTES =
[
  "You can't build a reputation on what you are going to do.",
  "God gives every bird its food, but He does not throw it into its nest.",
  "There are two kinds of people, those who finish what they start and so on.",
  "A fishing rod is a stick with a hook at one end and a fool at the other.",
 "Perhaps better we not obscure the idea that happiness and misery, kindness and greed, and good works and bad deeds are within the capacities of us all, not merely a select few.",
 "I'm seventeen and I'm crazy. My uncle says the two always go together. When people ask your age, he said, always say seventeen and insane.",
 "The only man who is really free is the one who can turn down an invitation to dinner without giving an excuse. ",
 "Money was never a big motivation for me, except as a way to keep score. The real excitement is playing the game.",
]
VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.add(number1, number2) ⇒ Object



4
5
6
# File 'lib/mirogemtest.rb', line 4

def self.add(number1, number2)
  number1 + number2
end

.get_quoteObject



12
13
14
15
16
# File 'lib/mirogemtest.rb', line 12

def self.get_quote
  sample_quote = QUOTES.sample
  random_number = rand(1..1e4)
  "Quote No.#{random_number}: #{sample_quote}"
end

.reverse(value) ⇒ Object



8
9
10
# File 'lib/mirogemtest.rb', line 8

def self.reverse(value)
  value.reverse
end