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
-
#basename ⇒ Object
:nodoc:.
-
#engine ⇒ Object
:nodoc:.
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
#basename ⇒ Object
:nodoc:
77 78 79 |
# File 'lib/generators/kaminari/views_generator.rb', line 77 def basename #:nodoc: File.basename name end |
#engine ⇒ Object
:nodoc:
73 74 75 |
# File 'lib/generators/kaminari/views_generator.rb', line 73 def engine #:nodoc: File.extname(name).sub /^\./, '' end |