havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.7.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
xco has joined #ruby
xco has quit [Ping timeout: 248 seconds]
Azure has joined #ruby
Azure has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
sarink has joined #ruby
crankharder has joined #ruby
Azure has joined #ruby
sarink has quit [Ping timeout: 244 seconds]
Azure|dc has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure|dc has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Exuma has joined #ruby
Exuma has quit [Client Quit]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
sarink has joined #ruby
sarink has quit [Ping timeout: 248 seconds]
SirFunk has quit [Quit: ZNC - http://znc.in]
cschneid_ has joined #ruby
SirFunk has joined #ruby
crankharder has quit [Ping timeout: 245 seconds]
cschneid_ has quit [Ping timeout: 248 seconds]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
budonyc has quit [Ping timeout: 248 seconds]
ellcs has joined #ruby
jmcgnh has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
sarink has joined #ruby
code_zombie has quit [Ping timeout: 252 seconds]
sarink has quit [Ping timeout: 245 seconds]
ellcs has quit [Ping timeout: 250 seconds]
genta has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has quit [Quit: bye bye]
staticx has joined #ruby
staticx has quit [Remote host closed the connection]
exmortus has quit [Ping timeout: 248 seconds]
exmortus has joined #ruby
exmortus has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
braincrash has joined #ruby
exmortus has joined #ruby
staticx has joined #ruby
sarink has joined #ruby
ellcs has joined #ruby
staticx has quit [Ping timeout: 272 seconds]
exmortus has quit [Ping timeout: 272 seconds]
exmortus has joined #ruby
sarink has quit [Ping timeout: 258 seconds]
sarink has joined #ruby
cschneid_ has joined #ruby
spacesuit has joined #ruby
spacesuit has quit [Client Quit]
spacesuit has joined #ruby
spacesuit has quit [Client Quit]
rg has joined #ruby
Azure has quit [Read error: Connection reset by peer]
spacesuit has joined #ruby
Azure has joined #ruby
rg has quit [Remote host closed the connection]
spacesuit has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 246 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
r3m has quit [Quit: WeeChat 2.6-dev]
r3m has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
tdy2 has joined #ruby
tdy1 has quit [Ping timeout: 268 seconds]
cschneid_ has joined #ruby
_whitelogger has joined #ruby
tdy2 is now known as tdy
cschneid_ has quit [Remote host closed the connection]
bambanxx has quit [Quit: Leaving]
cschneid_ has joined #ruby
exmortus has quit [Ping timeout: 248 seconds]
exmortus has joined #ruby
cschneid_ has quit [Ping timeout: 245 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
violentE has quit [Quit: Leaving]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
hatzopoulos has joined #ruby
wmoxam has joined #ruby
hatzopoulos has quit [Client Quit]
cschneid_ has joined #ruby
sarink has quit [Remote host closed the connection]
victorqueiroz has quit [Quit: Connection closed for inactivity]
cthulchu has joined #ruby
idiocrash has joined #ruby
Swyper has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 268 seconds]
sarink has joined #ruby
cats has quit [Ping timeout: 268 seconds]
gb_away has quit [Ping timeout: 245 seconds]
cats has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
lxsameer has joined #ruby
thodoris has quit []
cthulchu has quit [Ping timeout: 244 seconds]
hiroaki has joined #ruby
gb_away has joined #ruby
hiroaki has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
cthulchu has joined #ruby
fphilipe has joined #ruby
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reber has joined #ruby
blackmesa has quit [Quit: WeeChat 2.5]
fphilipe_ has joined #ruby
fphilipe has quit [Ping timeout: 276 seconds]
cschneid_ has joined #ruby
ghostlines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
ghostlines has joined #ruby
ghostlines has quit [Client Quit]
sauvin has quit [Ping timeout: 248 seconds]
sauvin has joined #ruby
schne1der has joined #ruby
cschneid_ has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
queip has quit [Ping timeout: 245 seconds]
code_zombie has joined #ruby
queip has joined #ruby
charon77 has joined #ruby
lxsameer has left #ruby ["WeeChat 2.4"]
queip has quit [Ping timeout: 245 seconds]
lord4163 has quit [Excess Flood]
lord4163 has joined #ruby
dhollin3 has joined #ruby
sarink_ has joined #ruby
dhollinger has quit [Ping timeout: 244 seconds]
nowhereman has joined #ruby
queip has joined #ruby
sarink has quit [Ping timeout: 244 seconds]
cschneid_ has joined #ruby
leftylink has quit [Remote host closed the connection]
dviola has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
fphilipe_ has joined #ruby
nowhere_man has joined #ruby
cschneid_ has quit [Ping timeout: 245 seconds]
nowhereman has quit [Ping timeout: 245 seconds]
charon77 has quit [Ping timeout: 244 seconds]
matheusmoreira has quit [Ping timeout: 258 seconds]
dellavg_ has joined #ruby
matheusmoreira has joined #ruby
leftylink has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
sarink has joined #ruby
AJA4350 has joined #ruby
thodoris has joined #ruby
sarink_ has quit [Ping timeout: 245 seconds]
charon77 has joined #ruby
fphilipe_ has joined #ruby
pwnd_nsfw has joined #ruby
dextrey has joined #ruby
charon77 has quit [Client Quit]
involans has joined #ruby
involans has quit [Client Quit]
reber_ has joined #ruby
reber has quit [Ping timeout: 244 seconds]
Tempesta has quit [Quit: AdiIRC is updating to v3.5 Beta Build (2019/06/23 UTC) 64 Bit]
Fernando-Basso has joined #ruby
cschneid_ has joined #ruby
fphilipe_ has quit [Ping timeout: 258 seconds]
dextrey has quit [Ping timeout: 252 seconds]
clay has joined #ruby
<clay> hi
dextrey has joined #ruby
<clay> hi
<clay> hi
clay has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 248 seconds]
ellcs has quit [Ping timeout: 252 seconds]
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
ellcs has joined #ruby
ellcs has quit [Max SendQ exceeded]
ellcs has joined #ruby
queip has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
alem0lars has quit [Ping timeout: 244 seconds]
reber_ is now known as reber
queip has joined #ruby
Swyper has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
Tempesta has joined #ruby
Swyper has joined #ruby
sarink_ has joined #ruby
sarink has quit [Read error: Connection reset by peer]
sarink_ has left #ruby [#ruby]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
cschneid_ has joined #ruby
fphilipe_ has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
dextrey has quit [Ping timeout: 268 seconds]
Swyper has joined #ruby
queip has quit [Ping timeout: 268 seconds]
dextrey has joined #ruby
queip has joined #ruby
Yxhvd is now known as yxhuvud
gix has joined #ruby
dextrey has quit [Ping timeout: 245 seconds]
CCDelivery has joined #ruby
conta has joined #ruby
conta has quit [Client Quit]
crankharder has joined #ruby
Swyper has quit [Remote host closed the connection]
alem0lars has joined #ruby
Swyper has joined #ruby
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
gabry has quit [Quit: Going offline, see ya! (www.adiirc.com)]
gabry has joined #ruby
gabry has quit [Excess Flood]
gabry has joined #ruby
gabry has quit [Excess Flood]
queip has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 248 seconds]
queip has joined #ruby
r29v has joined #ruby
Inline_ has joined #ruby
Inline has quit [Ping timeout: 250 seconds]
m27frogy has quit [Quit: ZNC - https://znc.in]
arup_r has joined #ruby
conta has joined #ruby
m27frogy has joined #ruby
conta has quit [Ping timeout: 246 seconds]
shirak has joined #ruby
arup_r has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
dextrey has joined #ruby
cschneid_ has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
Inline_ has quit [Quit: Leaving]
Inline has joined #ruby
dextrey has quit [Ping timeout: 272 seconds]
drale2k_ has joined #ruby
arup_r has joined #ruby
arup_r has quit []
reber has quit [Ping timeout: 268 seconds]
Fernando-Basso has quit [Remote host closed the connection]
r29v has quit [Quit: r29v]
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 258 seconds]
wintgeensteyn has joined #ruby
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
NoNoNo has joined #ruby
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> ПУТИН卍卍 ВАС ВСЕХ ВЫЕБЕТ В卍卍 ЖОПУ!卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
<havenwood> !ban wintgeensteyn
<wintgeensteyn> RUBY IS SHIT! 卍卍卍
<wintgeensteyn> NAZI PRIDE! 卍卍卍卍卍卍卍卍卍
wintgeensteyn was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
cschneid_ has quit [Ping timeout: 245 seconds]
cschneid_ has joined #ruby
RubyForGays has joined #ruby
<RubyForGays> VOLNA SSANINIJ
<RubyForGays> MEGAHITLERSPLIT
<RubyForGays> ICH HABE DEINE MUTTER GEFICKT
<RubyForGays> JAVASCRIPT IS SHIT
<RubyForGays> VOLNA SSANINIJ
RubySucks has joined #ruby
<RubySucks> VOLNA SSANINIJ
<RubySucks> ICH HABE DEINE MUTTER GEFICKT
<RubySucks> MEGAHITLERSPLIT
<RubyForGays> SIEG HEIL
<RubyForGays> F# F# F#
<RubySucks> JAVASCRIPT IS SHIT
<RubyForGays> GO SUCKS
<RubyForGays> VOLNA SSANINIJ
<RubySucks> SIEG HEIL
<RubySucks> F# F# F#
<RubySucks> VOLNA SSANINIJ
<RubyForGays> SIEG HEIL
<NoNoNo> say boom
<RubyForGays> LEAN
<RubySucks> SIEG HEIL
<RubySucks> GO SUCKS
<RubyForGays> !!!
<RubySucks> JAVASCRIPT IS SHIT
<RubyForGays> BRATISHKA IS GAY
<RubyForGays> F# F# F#
<RubySucks> I AM NOT SCHIZIK
<RubyForGays> YOUR MOM IS FAT
<RubySucks> LEAN
<RubySucks> !!!
<NoNoNo> allah babah
RubyIsSh1t has joined #ruby
<RubyIsSh1t> VOLNA SSANINIJ
<RubyForGays> BRATISHKA IS GAY
<RubyIsSh1t> ICH HABE DEINE MUTTER GEFICKT
<RubySucks> F# F# F#
<RubyIsSh1t> MEGAHITLERSPLIT
<RubySucks> YOUR MOM IS FAT
<RubyForGays> JAVASCRIPT IS SHIT
<RubyIsSh1t> JAVASCRIPT IS SHIT
<RubyIsSh1t> VOLNA SSANINIJ
<RubySucks> GO SUCKS
<RubySucks> SIEG HEIL
<RubyForGays> ALLES GEHT IN FLAMMEN AUF
<RubySucks> GO SUCKS
<RubyForGays> MEGAHITLERSPLIT
<RubyForGays> GO SUCKS
<RubyIsSh1t> SIEG HEIL
<RubyIsSh1t> F# F# F#
<RubySucks> BRATISHKA IS GAY
<RubyIsSh1t> GO SUCKS
<RubyIsSh1t> VOLNA SSANINIJ
<havenwood> !ban RubyForGays
NoNoNo has left #ruby [#ruby]
RubyForGays was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
RubySucks was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
RubyIsSh1t was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
drale2k_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Ooh, Module#constant_source_location was merged. I love that!
Azure|dc is now known as Azure
cschneid_ has quit [Ping timeout: 244 seconds]
DTZUZO has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
queip has quit [Ping timeout: 258 seconds]
queip has joined #ruby
schne1der has quit [Ping timeout: 245 seconds]
<Seance[m]> Time appropriate greetings
<Seance[m]> Got a question about writing tests in RSpec
<Seance[m]> what would be the most appropriate way to test a function that modifies an array?
<Seance[m]> if the function itself pushes to an array, it's not really returning something that I'd traditionally use .to eql for
<Seance[m]> (also I'm a big noob so it's probably something obvious)
alem0lars has quit [Ping timeout: 245 seconds]
<Seance[m]> For examples: expect(class_name.push_values('foo').to eql)
<Seance[m]> if the push_values function modified a separate array, how would I test for that array's contents instead?
Esa_ has joined #ruby
<Seance[m]> I take it I'd instantiate a test array inside the block of test
orbyt_ has joined #ruby
dviola has quit [Ping timeout: 245 seconds]
code_zombie has quit [Quit: Leaving]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
codefriar has joined #ruby
codefriar has quit [Client Quit]
ghostlines has joined #ruby
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 272 seconds]
troulouliou_dev has joined #ruby
DTZUZO has joined #ruby
CCDelivery has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
dbugger has joined #ruby
dbugger has quit [Remote host closed the connection]
funnel has quit [Ping timeout: 246 seconds]
hanmac has quit [Quit: Leaving.]
troulouliou_dev has quit [Quit: Leaving]
r29v has joined #ruby
fphilipe_ has quit [Ping timeout: 276 seconds]
reber has joined #ruby
funnel has joined #ruby
dhollin3 is now known as dhollinger
dbugger has joined #ruby
nowhereman has quit [Ping timeout: 258 seconds]
mosh has quit [Ping timeout: 245 seconds]
agent_white has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
Azure|dc has joined #ruby
TheBrayn has quit [Quit: poof]
TheBrayn has joined #ruby
ghostlin_ has joined #ruby
ghostlines has quit [Ping timeout: 248 seconds]
Azure has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
hutch has quit [Quit: WeeChat 2.5]
agent_white has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
hutch has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
troulouliou_dev has joined #ruby
riotjones has joined #ruby
fphilipe_ has joined #ruby
agent_white has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
cd has joined #ruby
shirak has quit [Ping timeout: 268 seconds]
schne1der has joined #ruby
planigan has quit [Ping timeout: 245 seconds]
edwardly has quit [Ping timeout: 246 seconds]
victorqueiroz has joined #ruby
planigan has joined #ruby
cd has quit [Ping timeout: 256 seconds]
cd has joined #ruby
edwardly has joined #ruby
r29v has quit [Quit: r29v]
cschneid_ has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
idiocrash has joined #ruby
al2o3-cr has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
idiocrash has quit [Remote host closed the connection]
idiocrash has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
reber_ has joined #ruby
reber has quit [Read error: Connection reset by peer]
reber_ is now known as reber
idiocrash has quit [Read error: Connection reset by peer]
reber has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 272 seconds]
idiocrash has joined #ruby
idiocrash has quit [Max SendQ exceeded]
dbugger has quit [Quit: Leaving]
idiocrash has joined #ruby
idiocrash has quit [Remote host closed the connection]
idiocrash has joined #ruby
dellavg_ has quit [Ping timeout: 272 seconds]
codefriar has joined #ruby
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
Esa_ has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Ping timeout: 246 seconds]
mb4518723 has joined #ruby
<mb4518723> hey guys, I'm wondering why [1,2,3].slice(0,0) => [] .... but [1,2,3].slice(1,1) => [2]
<leftylink> those two both seem consistent to me
<leftylink> it seems like they are both following the convention slice(start, length)
<mb4518723> I would think [1,2,3].slice(0,0) would return [1] though?
<mb4518723> hmm yeah
<leftylink> if one wishes to specify a start and end index instead of a start index and a length, one might consider [1, 2, 3, 4, 5][2..4]
<mb4518723> it's killing me right now because I'm trying to write very simple pagination function (array, page, per page) using slice. so far though I'm consistently getting one too many
<mb4518723> oh that's interesting leftylink, using a range instead
<mb4518723> page would be (n-1) and per_page I would think would ((page-1), (per_page+page))
<mb4518723> [1,2,3].slice(0..0) => [1] ... [1,2,3].slice(1..1) => [2] okay! that's consistent :) with what I was originally thinking
dionysus69 has joined #ruby
sarink has joined #ruby
sarink has quit [Ping timeout: 245 seconds]
<mb4518723> leftylink thanks a lot, I solved my problem. I had just failed to comprehend the documentation that it was #slice(start, length)!!!
<mb4518723> the solution that I ended up with was [n,....n-1].slice((page-1)*per_page, per_page))
<mb4518723> :) thank you so very much!
mb4518723 has quit [Ping timeout: 272 seconds]
matchaw has joined #ruby
matchaw_ has joined #ruby
matchaw has quit [Ping timeout: 258 seconds]
bambanx has joined #ruby
cschneid_ has joined #ruby
matchaw_ is now known as Matchaw
Matchaw has quit [Quit: Leaving]
fphilipe_ has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
tdy has quit [Ping timeout: 272 seconds]
idiocrash has quit [Read error: Connection reset by peer]
idiocrash has joined #ruby
cschneid_ has quit [Ping timeout: 245 seconds]
idiocrash has quit [Ping timeout: 245 seconds]
ghostlin_ has quit [Remote host closed the connection]
ghostlines has joined #ruby
ghostlines has quit [Max SendQ exceeded]
ghostlines has joined #ruby
ghostlines has quit [Max SendQ exceeded]
ghostlines has joined #ruby
ghostlines has quit [Max SendQ exceeded]
ghostlines has joined #ruby
rafadc has quit [Remote host closed the connection]
Tibian has joined #ruby
gb_away has quit [Ping timeout: 244 seconds]