Module: Kernel

Defined in:
lib/refr.rb

Instance Method Summary collapse

Instance Method Details

#Reference(*args, &block) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/refr.rb', line 61

def Reference (*args, &block)
  if args.empty? && block
    Reference.local(&block)
  else
    Reference[*args]
  end
end