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.11.0 test/sample/hasprops.rb
oj-3.10.18 test/sample/hasprops.rb
oj-3.10.17 test/sample/hasprops.rb
oj-3.10.16 test/sample/hasprops.rb
oj-3.10.15 test/sample/hasprops.rb
oj-3.10.14 test/sample/hasprops.rb
oj-3.10.13 test/sample/hasprops.rb
oj-3.10.12 test/sample/hasprops.rb
oj-3.10.11 test/sample/hasprops.rb
oj-3.10.10 test/sample/hasprops.rb
oj-3.10.9 test/sample/hasprops.rb
oj-3.10.8 test/sample/hasprops.rb
oj-3.10.7 test/sample/hasprops.rb
oj-3.10.6 test/sample/hasprops.rb
oj-3.10.5 test/sample/hasprops.rb
oj-3.10.3 test/sample/hasprops.rb
oj-3.10.2 test/sample/hasprops.rb
oj-3.10.1 test/sample/hasprops.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/oj-3.10.0/test/sample/hasprops.rb
oj-3.10.0 test/sample/hasprops.rb