Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/plugins/jakigan.rb,
lib/plugins/yhara.rb,
lib/plugins/jakigan.rb,
lib/termtter/system_extensions.rb
Overview
nop
Instance Method Summary collapse
- #choice ⇒ Object (also: #sample)
- #take(n) ⇒ Object
Instance Method Details
#choice ⇒ Object Also known as: sample
5 6 7 |
# File 'lib/plugins/yhara.rb', line 5 def choice at(rand(size)) end |
#take(n) ⇒ Object
138 |
# File 'lib/termtter/system_extensions.rb', line 138 def take(n) self[0...n] end |