Sha256: 0ea1c969fc2695197505346f7538c14f3ea1f4f18b696c8954af93e9011c41fc

Contents?: true

Size: 271 Bytes

Versions: 3

Compression:

Stored size: 271 Bytes

Contents

require "ostruct"

module Docks
  class OpenStruct < ::OpenStruct
    def to_json(options = nil)
      @table.to_json(options)
    end

    def as_json(options = nil)
      @table.as_json(options)
    end

    def each(&block)
      @table.each(&block)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 lib/docks/ostruct.rb
docks_app-0.0.2 lib/docks/ostruct.rb
docks_app-0.0.1 lib/docks/ostruct.rb