module SubstAttr::Substitute::NullObject

Constants

Weak

Public Instance Methods

build(interface=nil) click to toggle source
# File lib/subst_attr/substitute/null_object.rb, line 6
def build(interface=nil)
  if interface
    return strict(interface)
  end

  weak
end
strict(interface) click to toggle source
# File lib/subst_attr/substitute/null_object.rb, line 14
def strict(interface)
  Mimic.(interface, record: false)
end
weak() click to toggle source
# File lib/subst_attr/substitute/null_object.rb, line 18
def weak
  Weak.new
end