Sha256: 11d24cabc4acf1d52c4cce11505acb544dc39b72876e02715f2ba70ac787594c

Contents?: true

Size: 302 Bytes

Versions: 273

Compression:

Stored size: 302 Bytes

Contents

module Sample
  module HasProps

    def add_prop(key, value)
      @props = { } unless self.instance_variable_defined?(:@props)
      @props[key] = value
    end

    def props
      @props = { } unless self.instance_variable_defined?(:@props)
      @props
    end
    
  end # HasProps
end # Sample

Version data entries

273 entries across 273 versions & 4 rubygems

Version Path
oj-3.9.2 test/sample/hasprops.rb
oj-3.9.1 test/sample/hasprops.rb
oj-3.9.0 test/sample/hasprops.rb
oj-3.8.1 test/sample/hasprops.rb
oj-3.8.0 test/sample/hasprops.rb
oj-3.7.12 test/sample/hasprops.rb
oj-3.7.11 test/sample/hasprops.rb
oj-3.7.10 test/sample/hasprops.rb
oj-3.7.9 test/sample/hasprops.rb
oj-3.7.8 test/sample/hasprops.rb
oj-3.7.7 test/sample/hasprops.rb
oj-3.7.6 test/sample/hasprops.rb
oj-3.7.5 test/sample/hasprops.rb
oj-3.7.4 test/sample/hasprops.rb
oj-3.7.3 test/sample/hasprops.rb
oj-3.7.2 test/sample/hasprops.rb
oj-3.7.1 test/sample/hasprops.rb
oj-3.7.0 test/sample/hasprops.rb
oj-3.6.13 test/sample/hasprops.rb
oj-3.6.12 test/sample/hasprops.rb