class Object
Thanks ruby on rails!
These are all blatent, unapologetic rip offs of RoR extensions, and they behave in exactly the same way.
Constants
- SKColor
Public Instance Methods
__in_workaround(args)
click to toggle source
okay, this is strange, but `rake spec` fails if I define the method as `in?` but passes if I alias it, as I do below. weird, but I don't want to fight it.
# File lib/all/sugarcube-legacy/activesupport.rb, line 19 def __in_workaround(args) args.include?(self) rescue NoMethodError raise ArgumentError.new("The parameter passed to #in? must respond to #include?") end
Also aliased as: in?
blank?()
click to toggle source
# File lib/all/sugarcube-legacy/activesupport.rb, line 8 def blank? respond_to?(:empty?) ? empty? : !self end
present?()
click to toggle source
# File lib/all/sugarcube-legacy/activesupport.rb, line 12 def present? !blank? end
to_nsuserdefaults()
click to toggle source
# File lib/cocoa/sugarcube-nsuserdefaults/nsuserdefaults.rb, line 29 def to_nsuserdefaults self end