Sha256: f4f78661ee2d9d82c57526f8117037af7ba5f695c136b60b6328c17c963f52ea
Contents?: true
Size: 861 Bytes
Versions: 8
Compression:
Stored size: 861 Bytes
Contents
class EcoRake module Options module Parental class << self def included(base) super(base) base.extend ClassMethods end end module ClassMethods private def add_to_options(opt, **kargs) super.tap do |out| next unless opt.respond_to?(:parent=) opt.parent = self if opt == out end end def delete_from_options(opt) super.tap do |out| next unless opt.respond_to?(:parent=) out.parent = nil if opt == out end end def replace_in_options(ref, opt, **kargs) super.tap do |out| next unless opt.respond_to?(:parent=) ref.parent = nil if opt == out end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems