```ruby
def resolve_dir(*args)
  if self.class.method_defined? args.first.to_sym
    self.send(args.first)
  else
    args.first.to_s
  end
end
```