Sha256: 083be244b73e154721e9d432c1545d32aae777c914e8f02265bfcea4435e5f8a
Contents?: true
Size: 590 Bytes
Versions: 8
Compression:
Stored size: 590 Bytes
Contents
module Teacup module_function def apply_method(target, assign, setter, value) if assign and target.respond_to?(assign) NSLog "Setting #{setter} = #{value.inspect}" if target.respond_to? :debug and target.debug target.send(assign, value) elsif target.respondsToSelector(setter) NSLog "Calling target.#{setter}(#{value.inspect})" if target.respond_to? :debug and target.debug target.send(setter, value) else NSLog "TEACUP WARNING: Can't apply #{setter.inspect}#{assign and " or " + assign.inspect or ""} to #{target.inspect}" end end end
Version data entries
8 entries across 8 versions & 1 rubygems