Sha256: b42ce2912c105421cec9f6acba2f96336c04d94f8a438590bac755c10b849d83
Contents?: true
Size: 849 Bytes
Versions: 8
Compression:
Stored size: 849 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) elsif target.is_a?(self.AppearanceClass) 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 def AppearanceClass @appearance_klass ||= UIView.appearance.class end end
Version data entries
8 entries across 8 versions & 1 rubygems