module PathMapper::Node::Null
Public Instance Methods
f(m, **kwargs)
click to toggle source
# File lib/path_mapper/node/null.rb, line 15 def f(m, **kwargs) kwargs.key?(:default) ? kwargs[:default] : NullNode.new(@path.join(m.to_s)) end
method_missing(m, *args, &block)
click to toggle source
Calls superclass method
# File lib/path_mapper/node/null.rb, line 8 def method_missing(m, *args, &block) resp = nil.send m, *args, &block if (resp = super).is_a? NilClass # Base::File resp rescue ::NoMethodError self.f(m, self.kwargs(args)) end