Module: Cabal::Util
- Defined in:
- lib/cabal/util.rb,
lib/cabal/util/version.rb
Overview
Basic utility methods for Cabal
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .included(klass) ⇒ Object
-
.normalize(string) ⇒ String
Noralizes a string.
Instance Method Summary collapse
-
#normalize(string) ⇒ Object
Normalizes a string.
Class Method Details
.included(klass) ⇒ Object
7 8 9 |
# File 'lib/cabal/util.rb', line 7 def self.included(klass) klass.extend(self) end |
.normalize(string) ⇒ String
Noralizes a string
14 15 16 |
# File 'lib/cabal/util.rb', line 14 def self.normalize(string) string.to_s.downcase.gsub(/\s+/, '') end |