Sha256: 6d62119d99243c62af3fda6a73f6155aa1bcda0d0937e8e7b27cc4c38104e0ae
Contents?: true
Size: 1.85 KB
Versions: 2
Compression:
Stored size: 1.85 KB
Contents
module Walt module Support module_function =begin Constant.for("UIViewAnimationOption", value) =end def constant(base, value) return value if value.is_a? Numeric value = value.to_s.camelize Kernel.const_get("#{base}#{value}") end private def hack [ UIViewAnimationOptionLayoutSubviews, UIViewAnimationOptionAllowUserInteraction, UIViewAnimationOptionBeginFromCurrentState, UIViewAnimationOptionRepeat, UIViewAnimationOptionAutoreverse, UIViewAnimationOptionOverrideInheritedDuration, UIViewAnimationOptionOverrideInheritedCurve, UIViewAnimationOptionAllowAnimatedContent, UIViewAnimationOptionShowHideTransitionViews, UIViewAnimationOptionCurveEaseInOut, UIViewAnimationOptionCurveEaseIn, UIViewAnimationOptionCurveEaseOut, UIViewAnimationOptionCurveLinear, UIViewAnimationOptionTransitionNone, UIViewAnimationOptionTransitionFlipFromLeft, UIViewAnimationOptionTransitionFlipFromRight, UIViewAnimationOptionTransitionCurlUp, UIViewAnimationOptionTransitionCurlDown, UIViewAnimationOptionTransitionCrossDissolve, UIViewAnimationOptionTransitionFlipFromTop, UIViewAnimationOptionTransitionFlipFromBottom, UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, UIViewContentModeScaleAspectFill, UIViewContentModeRedraw, UIViewContentModeCenter, UIViewContentModeTop, UIViewContentModeBottom, UIViewContentModeLeft, UIViewContentModeRight, UIViewContentModeTopLeft, UIViewContentModeTopRight, UIViewContentModeBottomLeft, UIViewContentModeBottomRight, UITextAlignmentLeft, UITextAlignmentRight, UITextAlignmentCenter ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
walt-0.1.2 | lib/walt/support/const_get.rb |
walt-0.1 | lib/walt/support/const_get.rb |