Sha256: a13f3279d62c48e90abb953c41f7869b867f5b1512ff82a7bf51f7eef736ea7f

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Create a class name from a plural table name like Rails does for table names to models. Note that this returns a string and not a Class. (To convert to an actual class follow classify with constantize.)
- !ruby/struct:SM::Flow::P 
  body: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  "egg_and_hams".classify #=> "EggAndHam"\n  "posts".classify #=> "Post"\n"
- !ruby/struct:SM::Flow::P 
  body: Singular names are not handled correctly
- !ruby/struct:SM::Flow::VERB 
  body: "  "business".classify #=> "Busines"\n"
full_name: String::Style::classify
is_singleton: true
name: classify
params: (table_name)
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.2 doc/ri/String/Style/classify-c.yaml
facets-2.4.3 doc/ri/String/Style/classify-c.yaml