module Ocs::Document::Patches::Ocs::Resources::Base::ClassMethods
Public Instance Methods
define_attribute(attribute_name, type:)
click to toggle source
Calls superclass method
# File lib/ocs/document/patches/ocs/resources/base.rb, line 8 def define_attribute(attribute_name, type:) ::Ocs::Document::Generator.resources[to_s.split(/::/).last][attribute_name] = {type: type} super end