Class: Kaminari::Generators::Template
- Inherits:
-
Struct
- Object
- Struct
- Kaminari::Generators::Template
- Defined in:
- lib/generators/kaminari/views_generator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#sha ⇒ Object
Returns the value of attribute sha.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
82 83 84 |
# File 'lib/generators/kaminari/views_generator.rb', line 82 def name @name end |
#sha ⇒ Object
Returns the value of attribute sha
82 83 84 |
# File 'lib/generators/kaminari/views_generator.rb', line 82 def sha @sha end |
Instance Method Details
#description? ⇒ Boolean
83 84 85 |
# File 'lib/generators/kaminari/views_generator.rb', line 83 def description? name == 'DESCRIPTION' end |
#engine ⇒ Object
:nodoc:
91 92 93 |
# File 'lib/generators/kaminari/views_generator.rb', line 91 def engine #:nodoc: File.extname(name).sub(/^\./, '') end |
#view? ⇒ Boolean
87 88 89 |
# File 'lib/generators/kaminari/views_generator.rb', line 87 def view? name =~ /^app\/views\// end |