Skip to content

Commit

Permalink
[Lint] RuboCop autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
okuramasafumi committed May 26, 2024
1 parent f0d09f5 commit ba9d760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ end
FooResource.new(Foo.new).serialize
# => '{"bar":"This is Foo"}'
```

#### Params

You can pass a Hash to the resource for internal use. It can be used as "flags" to control attribute content.
Expand Down Expand Up @@ -1709,7 +1709,7 @@ module Logging
# `...` was added in Ruby 2.7
def serialize(...)
puts serializable_hash
super(...)
super
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/alba.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def validate_inflector(inflector)

def register_default_types
[String, :String].each do |t|
register_type(t, check: ->(obj) { obj.is_a?(String) }, converter: ->(obj) { obj.to_s })
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) })
Expand Down

0 comments on commit ba9d760

Please sign in to comment.