class CallIfAvailable

Public Instance Methods

method_missing(name, *args, &b) click to toggle source
# File lib/hobo_support/methodcall.rb, line 111
def method_missing(name, *args, &b)
  @target.send(name, *args, &b) if @target.respond_to?(name)
end

Public Class Methods

new(target) click to toggle source
# File lib/hobo_support/methodcall.rb, line 107
def initialize(target)
  @target = target
end