Class: Hash

Inherits:
Object show all
Defined in:
lib/forkforge/internal/monkeypatches.rb

Instance Method Summary collapse

Instance Method Details

#take(count, from = 0) ⇒ Object



25
26
27
# File 'lib/forkforge/internal/monkeypatches.rb', line 25

def take count, from = 0
  Hash[self.to_a[from..from+count]]
end