class TemplateGem::NorrisIt

You should have at least one class in your module. This one tells you something about Chuck Norris.

Public Class Methods

new() click to toggle source
# File lib/template_gem.rb, line 7
    def initialize
      @chucks_lines=%w(
When\ Alexander\ Bell\ invented\ the\ telephone\ he\ had\ 3\ missed\ calls\ from\ Chuck. Chuck\ Norris\ doesn't\ call\ the\ wrong\ number.\ You\ answer\ the\ wrong\ phone. Chuck\ Norris\ died\ twenty\ years\ ago\ but\ Death\ doesn't\ have\ the\ guts\ to\ tell\ him.)
    end

Public Instance Methods

first_name() click to toggle source
# File lib/template_gem.rb, line 12
def first_name
  "chuck"
end
last_name() click to toggle source
# File lib/template_gem.rb, line 15
def last_name
  "norris"
end
what_chuck_says() click to toggle source
# File lib/template_gem.rb, line 19
def what_chuck_says
  @chucks_lines[Random.rand*@chucks_lines.size]
end