Class: String

Inherits:
Object
  • Object
show all
Includes:
Slugity
Defined in:
lib/slugity/extend_string.rb

Constant Summary

Constants included from Slugity

Slugity::VERSION

Instance Method Summary collapse

Methods included from Slugity

#slugity, #stringity

Instance Method Details

#to_slug(key = :default) ⇒ String

call slugity on self

Parameters:

  • key (Symbol) (defaults to: :default)

    the matcher to use

Returns:

  • (String)

    the slugged string


9
10
11
# File 'lib/slugity/extend_string.rb', line 9

def to_slug key=:default
  slugity self, key
end