lib/usable/mod_extender.rb in usable-1.0.0 vs lib/usable/mod_extender.rb in usable-1.1.0
- old
+ new
@@ -1,10 +1,12 @@
module Usable
class ModExtender
+ attr_reader :name
attr_accessor :copy, :mod, :config
def initialize(mod, config = OpenStruct.new)
@mod = mod
+ @name = mod.name
@copy = has_spec? ? mod.const_get(:UsableSpec).dup : mod.dup
@config = config
end
# @note Destructive