Method: Hanami::Slice::ClassMethods#slice_name

Defined in:
lib/hanami/slice.rb

#slice_nameSliceName

Returns a Hanami::SliceName for the slice, an object with methods returning the name of the slice in various formats.

Returns:

Since:

  • 2.0.0

[View source]

173
174
175
# File 'lib/hanami/slice.rb', line 173

def slice_name
  @slice_name ||= SliceName.new(self, inflector: method(:inflector))
end