module Lorj::DataRubySpec::Public

Public functions

Public functions

Public Instance Methods

[]=(*prop) click to toggle source

Set Lorj::data attribute value for an :object

  • Args :

    • keys : attribute keys

    • value: Value to set

  • Returns : true

  • Raises : No exceptions

# File lib/core/compat/1.8/lorj_data.rb, line 32
def []=(*prop)
  key = prop.clone
  value = key.pop
  return false if @type == :list
  @data.rh_set(value, :attrs, key)
  true
end