module LuckySvgSpriteCli::Inflector
Defined in:
lucky_svg_sprite_cli/inflector.crClass Method Summary
-
.classify(value : String, from_path = false)
Convert a given string in to a classified version:
- .dasherize(value : String, from_path = false, from_class = false)
Class Method Detail
def self.classify(value : String, from_path = false)
#
Convert a given string in to a classified version:
Inflector.classify("some-string")
# => "SomeString"
Inflector.classify("/some/file/path/some-name.svg", from_path: true)
# => "SomeName"