Class: JSRailsRoutes::Builder::Artifact

Inherits:
Struct
  • Object
show all
Defined in:
lib/js_rails_routes/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



7
8
9
# File 'lib/js_rails_routes/builder.rb', line 7

def body
  @body
end

#engine_nameObject

Returns the value of attribute engine_name

Returns:

  • (Object)

    the current value of engine_name



7
8
9
# File 'lib/js_rails_routes/builder.rb', line 7

def engine_name
  @engine_name
end

#extObject

Returns the value of attribute ext

Returns:

  • (Object)

    the current value of ext



7
8
9
# File 'lib/js_rails_routes/builder.rb', line 7

def ext
  @ext
end

Instance Method Details

#file_nameString

Returns:

  • (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