class MethodObject::ObjectFactory
Creates instances for delegation and caching method definitions.
Constants
- STRUCT_DEFINITION
Public Class Methods
create(*attributes)
click to toggle source
# File lib/method_object.rb, line 90 def self.create(*attributes) Struct.new(*attributes, keyword_init: true, &STRUCT_DEFINITION) end