lib/hanami/model/entity_name.rb in hanami-model-1.3.2 vs lib/hanami/model/entity_name.rb in hanami-model-1.3.3
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Hanami
module Model
# Conventional name for entities.
#
# Given a repository named <tt>SourceFileRepository</tt>, the associated
@@ -16,10 +18,10 @@
# @return [String] the entity name
#
# @since 0.7.0
# @api private
def initialize(name)
- @name = name.sub(SUFFIX, '')
+ @name = name.sub(SUFFIX, "")
end
# @since 0.7.0
# @api private
def underscore