Skip to content

Commit eadb6dd

Browse files
committed
style: Fix Layout/LineLength
1 parent 339f471 commit eadb6dd

4 files changed

Lines changed: 10 additions & 15 deletions

File tree

lib/kiba/extend/registry/creator/hash_creator_args_type_error.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ module Registry
66
class Creator
77
class HashCreatorArgsTypeError < Kiba::Extend::Error
88
def initialize(args)
9-
# rubocop:todo Layout/LineLength
10-
super("Registry::Creator passed Hash with #{args.class} `args`. Give a Hash instead.")
11-
# rubocop:enable Layout/LineLength
9+
super("Registry::Creator passed Hash with #{args.class} `args`. "\
10+
"Give a Hash instead.")
1211
end
1312
end
1413
end

lib/kiba/extend/registry/creator/hash_creator_callee_error.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ module Registry
66
class Creator
77
class HashCreatorCalleeError < Kiba::Extend::Error
88
def initialize(callee)
9-
# rubocop:todo Layout/LineLength
10-
super("Registry::Creator passed Hash with #{callee.class} `callee`. Give Method or Module instead.")
11-
# rubocop:enable Layout/LineLength
9+
super("Registry::Creator passed Hash with #{callee.class} "\
10+
"`callee`. Give Method or Module instead.")
1211
end
1312
end
1413
end
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
# frozen_string_literal: true
22

3-
# rubocop:todo Layout/LineLength
4-
53
module Kiba
64
module Extend
75
module Registry
86
class Creator
9-
# Raised when you try to initialize a Creator with an invalid value (wrong class)
7+
# Raised when you try to initialize a Creator with an invalid value
8+
# (a module that lacks a `job` method)
109
class JoblessModuleCreatorError < Kiba::Extend::Error
1110
def initialize(spec)
12-
super("#{spec} passed as Registry::Creator, but does not define `job` method")
11+
super("#{spec} passed as Registry::Creator, but does not define "\
12+
"`job` method")
1313
end
1414
end
1515
end
1616
end
1717
end
1818
end
19-
# rubocop:enable Layout/LineLength
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# frozen_string_literal: true
22

3-
# rubocop:todo Layout/LineLength
4-
53
module Kiba
64
module Extend
75
module Registry
86
class Creator
9-
# Raised when you try to initialize a Creator with an invalid value (wrong class)
7+
# Raised when you try to initialize a Creator with an invalid type
8+
# of creator
109
class TypeError < Kiba::Extend::Error
1110
def initialize(spec)
1211
type = spec.class.to_s
@@ -17,4 +16,3 @@ def initialize(spec)
1716
end
1817
end
1918
end
20-
# rubocop:enable Layout/LineLength

0 commit comments

Comments
 (0)