lib/much-not-given.rb in much-not-given-0.1.1 vs lib/much-not-given.rb in much-not-given-0.1.2
- old
+ new
@@ -1,18 +1,18 @@
# frozen_string_literal: true
require "much-not-given/version"
-require "much-plugin"
+require "much-mixin"
module MuchNotGiven
- include MuchPlugin
+ include MuchMixin
- plugin_class_methods do
+ mixin_class_methods do
def not_given
@not_given ||=
begin
- Class.new {
+ Class.new{
def initialize(receiver_name)
@receiver_name = receiver_name
end
def blank?
@@ -36,10 +36,10 @@
true
else
super
end
end
- }.new(self.inspect)
+ }.new(inspect)
end
end
def not_given?(value)
value == not_given