Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/plugins/jakigan.rb,
lib/plugins/yhara.rb,
lib/plugins/jakigan.rb,
lib/termtter/system_extensions/core_compatibles.rb

Overview

nop

Instance Method Summary collapse

Instance Method Details

#choiceObject Also known as: sample



5
6
7
# File 'lib/plugins/yhara.rb', line 5

def choice
  at(rand(size))
end

#take(n) ⇒ Object



5
# File 'lib/termtter/system_extensions/core_compatibles.rb', line 5

def take(n) self[0...n] end