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
72 73 74 |
# File 'lib/generators/kaminari/views_generator.rb', line 72 def name @name end |
#sha ⇒ Object
Returns the value of attribute sha
72 73 74 |
# File 'lib/generators/kaminari/views_generator.rb', line 72 def sha @sha end |
Instance Method Details
#description? ⇒ Boolean
73 74 75 |
# File 'lib/generators/kaminari/views_generator.rb', line 73 def description? name == 'DESCRIPTION' end |
#engine ⇒ Object
:nodoc:
81 82 83 |
# File 'lib/generators/kaminari/views_generator.rb', line 81 def engine #:nodoc: File.extname(name).sub /^\./, '' end |
#view? ⇒ Boolean
77 78 79 |
# File 'lib/generators/kaminari/views_generator.rb', line 77 def view? name =~ /^app\/views\// end |