Class: Lab42::Lazy

Inherits:
Enumerator::Lazy
  • Object
show all
Defined in:
lib/lab42/lazy.rb

Instance Method Summary collapse

Instance Method Details

#f(*a, &blk) ⇒ Object



4
5
6
7
# File 'lib/lab42/lazy.rb', line 4

def f *a, &blk
  return force if a.empty? && blk.nil?
  super
end

#inspectObject



9
10
11
# File 'lib/lab42/lazy.rb', line 9

def inspect
  force
end