Sha256: c27e9064f488f2b7486b7bce3325b79b115f5391c0aedc940ec252b14987860e

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

== String#modulize

  require 'facets/string/modulize'

snakecase

  a = "foo_bar"
  r = "FooBar"
  a.modulize.assert == r

path name

  a = "foo/bar"
  r = "Foo::Bar"
  a.modulize.assert == r

on methodized string

  a = "foo__bar"
  r = "Foo::Bar"
  a.modulize.assert == r

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facets-3.0.0 demo/core/string/modulize.rdoc
facets-2.9.3 qed/core/string/modulize.rdoc
facets-2.9.2 qed/core/string/modulize.rdoc
facets-2.9.1 qed/core/string/modulize.rdoc
facets-2.9.0 qed/core/string/modulize.rdoc
facets-2.9.0.pre.2 qed/core/string/modulize.rdoc
facets-2.9.0.pre.1 qed/core/string/modulize.rdoc