Class: Util::Ref

Inherits:
Object
  • Object
show all
Defined in:
lib/ruff/standard/util.rb

Instance Method Summary collapse

Constructor Details

#initialize(v) ⇒ Ref

Returns a new instance of Ref.



26
27
28
# File 'lib/ruff/standard/util.rb', line 26

def initialize(v)
  @v = v
end

Instance Method Details

#getObject



30
31
32
# File 'lib/ruff/standard/util.rb', line 30

def get
  @v
end

#set(v_) ⇒ Object



34
35
36
# File 'lib/ruff/standard/util.rb', line 34

def set(v_)
  @v = v_
end