Sha256: da7517cc6ef825616256ec35634b75ff870f7523454f5345663350a9be03c507

Contents?: true

Size: 424 Bytes

Versions: 5

Compression:

Stored size: 424 Bytes

Contents

module MotionPrime
  class PageViewControllerElement < BaseElement
    after_render :set_delegated
    def view_class
      "UIPageViewController"
    end

    def set_delegated
      if computed_options.has_key?(:delegate) && computed_options[:delegate].respond_to?(:delegated_by) && section.respond_to?(:page_controller)
        computed_options[:delegate].delegated_by(section.page_controller)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
motion-prime-1.0.7 motion-prime/elements/page_view_controller.rb
motion-prime-1.0.6 motion-prime/elements/page_view_controller.rb
motion-prime-1.0.5 motion-prime/elements/page_view_controller.rb
motion-prime-1.0.4 motion-prime/elements/page_view_controller.rb
motion-prime-1.0.3 motion-prime/elements/page_view_controller.rb