lib/alba.rb in alba-3.3.1 vs lib/alba.rb in alba-3.3.2
- old
+ new
@@ -259,10 +259,10 @@
end
inflector
end
- def register_default_types # rubocop:disable Mertics/AbcSize
+ def register_default_types # rubocop:disable Metrics/AbcSize
[String, :String].each do |t|
register_type(t, check: ->(obj) { obj.is_a?(String) }, converter: lambda(&:to_s))
end
[Integer, :Integer].each do |t|
register_type(t, check: ->(obj) { obj.is_a?(Integer) }, converter: ->(obj) { Integer(obj) })