Sha256: 74fc3960073225650c549a1d65f05435ad46ffa877378fdce13d5ef527f78d7f

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

module Mjs
  module PageObject
    private
      def page
        @page ||= Mjs::JavaScriptContext.new
      end

      def render(*args)
        if args[0].is_a?(Mjs::JavaScriptContext)
          args[0].to_s
        else
          super
        end
      end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
maiha-mjs-0.0.2 lib/mjs/page_object.rb
maiha-mjs-0.0.3 lib/mjs/page_object.rb
maiha-mjs-0.0.4 lib/mjs/page_object.rb
maiha-mjs-0.0.5 lib/mjs/page_object.rb
mjs-0.1.1 lib/mjs/page_object.rb
mjs-0.0.6 lib/mjs/page_object.rb