class RobertoBarros

Return quotes and truths about the great Roberto Barros

Constants

DATA

Public Class Methods

fact() click to toggle source

Take no arguments. Return a Chuck Norris-style fact (with the difference that these are true) about the great Roberto Barros.

# File lib/roberto_barros.rb, line 23
def self.fact
  DATA['pt-BR']['facts'].sample
end
genius?() click to toggle source

Take no arguments. Return a boolean of whether the great Roberto Barros is a genius.

# File lib/roberto_barros.rb, line 29
def self.genius?
  true
end
in_ingrish() click to toggle source

Take no arguments. Return a quote brilliantly translated into International Programmers' Language.

# File lib/roberto_barros.rb, line 17
def self.in_ingrish
  DATA['en']['quotes'].sample
end
quote() click to toggle source

Take no arguments. Return a quote straight from the mouth of the great Roberto Barros himself.

# File lib/roberto_barros.rb, line 11
def self.quote
  DATA['pt-BR']['quotes'].sample
end
work_on_my_machine?() click to toggle source

Take no arguments. Return a boolean if the code works on your machine

# File lib/roberto_barros.rb, line 34
def self.work_on_my_machine?
  true
end