Sha256: e28ba83fd4f822d309b901dc38a577aae4e223022294a2fad2543956dc15560f
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
require 'freakin/version' require 'freakin/translator' module Freakin #:nodoc: # The main Freakin class. It is not intended to be instantiated and instead # just need to call its hi method. class Freakin # When called returns a greeting matching the language defined. Currently # supports English and Spanish. # # ==== Attributes # # * +language+ - Set to select a different language. Default is +english+. # # ==== Examples # # Freakin::Freakin.hi # Freakin::Freakin.hi('spanish') # def self.hi(language = 'english') trans = Translator.new(language) trans.hi end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
freakin-0.1.1 | lib/freakin.rb |
freakin-0.1.0 | lib/freakin.rb |