main
1# frozen_string_literal: true
2
3module Scim
4 module Kit
5 # Allows dynamic creation of attributes.
6 module DynamicAttributes
7 def method_missing(method, *args)
8 return super unless respond_to_missing?(method)
9
10 @dynamic_attributes[method] = args[0]
11 end
12
13 def respond_to_missing?(method, _include_private = false)
14 @dynamic_attributes.key?(method) || super
15 end
16 end
17 end
18end