Module: Rhino::Ruby::DeprecatedAccess

Included in:
AttributeAccess, DefaultAccess
Defined in:
lib/rhino/ruby/access.rb

Instance Method Summary collapse

Instance Method Details

#get(object, name, scope, &block) ⇒ Object



63
64
65
66
# File 'lib/rhino/ruby/access.rb', line 63

def get(object, name, scope, &block)
  Rhino.warn "[DEPRECATION] `#{self.name}.get` is deprecated, please sub-class #{self.name} instead."
  instance.get(object, name, scope, &block)
end

#has(object, name, scope, &block) ⇒ Object



58
59
60
61
# File 'lib/rhino/ruby/access.rb', line 58

def has(object, name, scope, &block)
  Rhino.warn "[DEPRECATION] `#{self.name}.has` is deprecated, please sub-class #{self.name} instead."
  instance.has(object, name, scope, &block)
end

#put(object, name, value, &block) ⇒ Object



68
69
70
71
# File 'lib/rhino/ruby/access.rb', line 68

def put(object, name, value, &block)
  Rhino.warn "[DEPRECATION] `#{self.name}.put` is deprecated, please sub-class #{self.name} instead."
  instance.put(object, name, value, &block)
end