class Grape::Util::InheritableSetting
def point_in_time_copy
changed via #inherit_from, it will copy that inheritence to any copies
all our values. Note that, should this instance's parent be set or
Create a point-in-time copy of this settings instance, with clones of
def point_in_time_copy self.class.new.tap do |new_setting| point_in_time_copies << new_setting new_setting.point_in_time_copies = [] new_setting.namespace = namespace.clone new_setting.namespace_inheritable = namespace_inheritable.clone new_setting.namespace_stackable = namespace_stackable.clone new_setting.namespace_reverse_stackable = namespace_reverse_stackable.clone new_setting.route = route.clone new_setting.api_class = api_class new_setting.inherit_from(parent) end end