Class: JSRailsRoutes::Builder::Artifact
- Inherits:
-
Struct
- Object
- Struct
- JSRailsRoutes::Builder::Artifact
- Defined in:
- lib/js_rails_routes/builder.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#engine_name ⇒ Object
Returns the value of attribute engine_name.
-
#ext ⇒ Object
Returns the value of attribute ext.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
7 8 9 |
# File 'lib/js_rails_routes/builder.rb', line 7 def body @body end |
#engine_name ⇒ Object
Returns the value of attribute engine_name
7 8 9 |
# File 'lib/js_rails_routes/builder.rb', line 7 def engine_name @engine_name end |
#ext ⇒ Object
Returns the value of attribute ext
7 8 9 |
# File 'lib/js_rails_routes/builder.rb', line 7 def ext @ext end |
Instance Method Details
#file_name ⇒ String
9 10 11 |
# File 'lib/js_rails_routes/builder.rb', line 9 def file_name "#{engine_name.gsub('::Engine', '').underscore.tr('/', '-')}-routes.#{ext}" end |