Skip to content

Commit

Permalink
Make custom properties compatible with Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
florentferry committed Nov 8, 2023
1 parent 0d43fc6 commit 3c80ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/komponent/component_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module ComponentHelper
def property(name, options = {})
def property(name, **options)
@properties[name] = options
end

Expand Down

0 comments on commit 3c80ff3

Please sign in to comment.