Class: Rails::Generators::GeneratedAttribute
- Inherits:
-
Object
- Object
- Rails::Generators::GeneratedAttribute
- Defined in:
- lib/generators/rspec.rb
Instance Method Summary collapse
Instance Method Details
#input_type ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/generators/rspec.rb', line 22 def input_type @input_type ||= if type == :text "textarea" else "input" end end |