1 28 package org.jruby.internal.runtime; 29 30 import org.jruby.runtime.IAccessor; 31 import org.jruby.runtime.builtin.IRubyObject; 32 33 37 public class ValueAccessor implements IAccessor { 38 private IRubyObject value; 39 40 public ValueAccessor(IRubyObject value) { 41 assert value != null; 42 43 this.value = value; 44 } 45 46 public IRubyObject getValue() { 47 return value; 48 } 49 50 public IRubyObject setValue(IRubyObject newValue) { 51 value = newValue; 52 53 return newValue; 54 } 55 } 56 | Popular Tags |