Sha256: 837271f4842e3578b9299b80bb2cb391b19480639443ac8b297e76899da02687

Contents?: true

Size: 161 Bytes

Versions: 3

Compression:

Stored size: 161 Bytes

Contents

require 'ostruct'

module Saxy
  class OpenStruct < ::OpenStruct
    if Saxy.ruby_18?
      define_method :id do
        @table[:id]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
saxy-0.2.3 lib/saxy/ostruct.rb
saxy-0.2.2 lib/saxy/ostruct.rb
saxy-0.2.1 lib/saxy/ostruct.rb