Sha256: 9ab4dfbf4481d0486d18093ccf03136bcb9eaff86d4ae42a48f24740f1b49c42

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 Bytes

Contents

module LucidApp
  module API
    def self.included(base)
      base.instance_exec do
        def render(&block)
          `base.render_block = block`
        end
      end

      def context
        @native.JS[:context]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
isomorfeus-react-16.8.2 lib/lucid_app/api.rb
isomorfeus-react-16.8.1 lib/lucid_app/api.rb
isomorfeus-react-16.8.0 lib/lucid_app/api.rb