Module: Slugity

Included in:
String
Defined in:
lib/slugity.rb,
lib/slugity/convert.rb,
lib/slugity/version.rb,
lib/slugity/matchers.rb,
lib/slugity/utilities.rb,
lib/slugity/matchers/default.rb

Defined Under Namespace

Modules: Convert, Matchers, Util

Constant Summary collapse

VERSION =
'1.1.0'

Instance Method Summary collapse

Instance Method Details

#slugity(string, matcher = :default) ⇒ String

Converts the given string into a slug


12
13
14
# File 'lib/slugity.rb', line 12

def slugity string, matcher=:default
  Slugity::Convert.slug string, matcher
end

#stringity(string, matcher = :default) ⇒ String

Converts the given string with the provided matcher


21
22
23
# File 'lib/slugity.rb', line 21

def stringity string, matcher=:default
  Slugity::Convert.string string, matcher
end