Class: String
- Inherits:
-
Object
- Object
- String
- Includes:
- Term::ANSIColor
- Defined in:
- lib/peto/master.rb,
lib/peto/generator.rb
Instance Method Summary collapse
Instance Method Details
#to_class_type ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/peto/generator.rb', line 11 def to_class_type case self when "integer" "Fixnum" else classify end end |
#to_method_name ⇒ Object
8 9 10 |
# File 'lib/peto/generator.rb', line 8 def to_method_name underscore.split(" ").join("_") end |