Sha256: e60f00d529f797621ca35d7637809ccd5d22a7109f9bacbf72e65254de2005d9

Contents?: true

Size: 475 Bytes

Versions: 16

Compression:

Stored size: 475 Bytes

Contents

require 'awestruct/astruct_mixin'

module Awestruct

  class AStruct < Hash

    include AStructMixin

    if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
      undef org, com, java, javax, javafx # Issue #480
    end

    def initialize(hash=nil)
      hash.each{|k,v| self[k]=v } if hash
    end

    alias_method :original_entries, :entries
    undef entries

    def inspect
      "AStruct{...}"
    end

    def hash()
      self.output_path.hash
    end

  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
awestruct-0.6.7 lib/awestruct/astruct.rb
awestruct-0.6.6 lib/awestruct/astruct.rb
awestruct-0.6.5 lib/awestruct/astruct.rb
awestruct-0.6.4 lib/awestruct/astruct.rb
awestruct-0.6.3 lib/awestruct/astruct.rb
awestruct-0.6.2 lib/awestruct/astruct.rb
awestruct-0.6.1 lib/awestruct/astruct.rb
awestruct-0.6.0 lib/awestruct/astruct.rb
awestruct-0.6.0.RC1 lib/awestruct/astruct.rb
awestruct-0.6.0.alpha4 lib/awestruct/astruct.rb
awestruct-0.6.0.alpha3 lib/awestruct/astruct.rb
awestruct-0.6.0.alpha1 lib/awestruct/astruct.rb
awestruct-0.5.7 lib/awestruct/astruct.rb
awestruct-0.5.7.RC2 lib/awestruct/astruct.rb
awestruct-0.5.7.RC1 lib/awestruct/astruct.rb
awestruct-0.5.6 lib/awestruct/astruct.rb