Sha256: 54ef04217dc809cd1f70fa4b8cdea842602996520954878f1ed6f6036dc8a4fc
Contents?: true
Size: 266 Bytes
Versions: 1
Compression:
Stored size: 266 Bytes
Contents
module Hulkify class Translation def initialize(phrase) @phrase = phrase end def to_hulk @phrase.upcase.gsub(/(\A|\W)I(\W|\Z)/, "HULK"). gsub(/(\A|\W)I'VE(\W|\Z)/, "HULK"). gsub(/(\A|\W)I(\W|\Z)/, "HULK") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hulkify-0.0.2 | lib/hulkify/translation.rb |