Class: MotionKit::CAGradientLayerHelpers
- Inherits:
-
CALayerHelpers
- Object
- BaseLayout
- TreeLayout
- CALayerHelpers
- MotionKit::CAGradientLayerHelpers
- Defined in:
- lib/motion-kit-cocoa/layouts/cagradientlayer_helpers.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseLayout
Instance Method Summary collapse
Methods inherited from CALayerHelpers
#add_child, #default_root, #layer, #remove_child
Methods inherited from TreeLayout
#add, #all, #all_views, #build, #built?, #child_layouts, #create, #create_default_root_context, #first, #get, #get_view, #initial, #initial?, #initialize, #last, #last_view, #name_element, #nth, #nth_view, #reapply, #reapply!, #reapply?, #remove, #root, view, #view
Methods inherited from BaseLayout
#add_deferred_block, #apply, #apply_with_context, #apply_with_target, #context, #deferred, #deferred_blocks, delegate_method_fix, #has_context?, #initialize, #ipad?, #iphone35?, #iphone4?, #iphone?, #is_parent_layout?, #method_missing, #objc_version, #orientation?, #parent_layout, #retina?, #ruby_version, #run_deferred, #set_parent_layout, #target, #v
Methods included from BaseLayoutClassMethods
#layout_for, #memoize, #target_klasses, #targets
Constructor Details
This class inherits a constructor from MotionKit::TreeLayout
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MotionKit::BaseLayout
Instance Method Details
#colors(values) ⇒ Object
8 9 10 |
# File 'lib/motion-kit-cocoa/layouts/cagradientlayer_helpers.rb', line 8 def colors(values) target.colors = values.map { |color| color.is_a?(MotionKit.color_class) ? color.CGColor : color } end |