Sha256: 793a0e583a24bd37adf767fe0991aa2743fa3a5b4a09c49f0f5309981fc05293
Contents?: true
Size: 738 Bytes
Versions: 3
Compression:
Stored size: 738 Bytes
Contents
require_relative "render_react/version" require_relative "render_react/context" module RenderReact class << self def context @context or raise ArgumentError, "Create a RenderReact::Context via RenderReact.create_context! first!" end def create_context!(*args) @context = Context.new(*args) end def render_react(*args) context.render_react(*args) end alias call render_react def on_server(*args) context.on_server(*args) end def on_client(*args) context.on_client(*args) end def on_client_and_server(*args) context.on_client_and_server(*args) end def on_server_and_client(*args) context.on_server_and_client(*args) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
render_react-1.0.2 | lib/render_react.rb |
render_react-1.0.1 | lib/render_react.rb |
render_react-1.0.0 | lib/render_react.rb |