class SknUtils::EnvStringHandler

Private Instance Methods

method_missing(method_name, *arguments) click to toggle source
Calls superclass method
# File lib/skn_utils/env_string_handler.rb, line 33
def method_missing(method_name, *arguments)
  if method_name[-1] == '?'
    self == method_name[0..-2]

    # Only handle the :join method, else to super
  elsif Pathname.public_instance_methods(false).include?(method_name)
    method_name.to_s.eql?('join') ?
        Pathname(self).send(method_name, *arguments).realdirpath.to_s  :
        Pathname(self).send(method_name, *arguments)

  else
    super
  end
end
respond_to_missing?(method_name, _include_private = false) click to toggle source
Calls superclass method
# File lib/skn_utils/env_string_handler.rb, line 29
def respond_to_missing?(method_name, _include_private = false)
  method_name[-1] == '?' || method_name.to_s.eql?('join') || super
end