Skip to content

Commit

Permalink
Fix line length
Browse files Browse the repository at this point in the history
  • Loading branch information
cllns committed Jul 15, 2024
1 parent e9ce05a commit 4925db1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dry/struct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ def initialize(attributes)
# rom_n_roda[:title] #=> 'Web Development with ROM and Roda'
# rom_n_roda[:subtitle] #=> nil
def [](name)
@attributes.fetch(name) { raise MissingAttributeError.new(attribute: name, klass: self.class) }
@attributes.fetch(name) do
raise MissingAttributeError.new(attribute: name, klass: self.class)
end
end

# Converts the {Dry::Struct} to a hash with keys representing
Expand Down

0 comments on commit 4925db1

Please sign in to comment.