Module: RuboCop::Schema::KeywordInitPatch
- Defined in:
- lib/rubocop/schema/value_objects.rb
Overview
Support for Ruby 2.4
Instance Method Summary collapse
Instance Method Details
#initialize(**attrs) ⇒ Object
26 27 28 |
# File 'lib/rubocop/schema/value_objects.rb', line 26 def initialize(**attrs) super *self.class.members.map { |k| attrs[k] } end |