Sha256: c2d6734259dc7d89f69d04de8e81aa4100ed44d2a62b6c7413125e8947ad6229
Contents?: true
Size: 587 Bytes
Versions: 20
Compression:
Stored size: 587 Bytes
Contents
module Teacup module_function def apply_method(target, assign, setter, value) if assign and target.respond_to?(assign) NSLog "Setting #{key} = #{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
20 entries across 20 versions & 1 rubygems