dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghr has joined #ruby
macsteps has quit [Remote host closed the connection]
finnnnnnnnnnn has joined #ruby
macsteps has joined #ruby
Yzguy has quit [Client Quit]
AndrewIsHere has quit [Remote host closed the connection]
rehat has joined #ruby
benlieb has quit [Quit: benlieb]
ghr has quit [Ping timeout: 240 seconds]
underplank has joined #ruby
ghr has joined #ruby
<Papierkorb>
JmcC: if you insist on using a CMS, check out RefineryCMS
<Papierkorb>
JmcC: Though I've never used it, not a fan of CMS's :)
zacstewart has joined #ruby
Guest60828 has quit [Ping timeout: 272 seconds]
Guest60828 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
alfiemax has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
<JmcC>
Papierkorb: ill look at it
<JmcC>
its just i wanted something really simple
<JmcC>
but all the bugs made it anything but
<Papierkorb>
JmcC: simple for what?
<JmcC>
like
<JmcC>
i basically don't want to have to learn to use the cms
<JmcC>
i want to just use it
<JmcC>
i hate web development
<JmcC>
but im being paid
<Papierkorb>
.... wordpress *cough*
hipertracker has joined #ruby
<JmcC>
i hate php
doublemalt_ has quit [Ping timeout: 244 seconds]
<JmcC>
i actually like ruby
<JmcC>
even though im more of a lisp guy
<Papierkorb>
I do too, but if you just need a webblog...
<JmcC>
this is my summer job lmao
<Papierkorb>
to set up a web blog?
k3rn31 has joined #ruby
<JmcC>
i sold my soul
ghr has joined #ruby
<JmcC>
to make websites
yfeldblum has joined #ruby
karapetyan has quit [Remote host closed the connection]
<Papierkorb>
JmcC: it really depends on what you *actually* need to do. Plain Rails isn't too hard either (See #RubyOnRails for that)
<JmcC>
i need my clients to be able to edit
<JmcC>
otherwise id just do LAMP
<Papierkorb>
That's probably possible with every blogging software or CMS in the world I guess
<JmcC>
yes
<JmcC>
which is why i chose mexican sofa
<JmcC>
because its the simplest
soulisson has joined #ruby
<JmcC>
and it said it wouldnt get in the way
<JmcC>
but ive spend like 6 hours on it
<JmcC>
and ive just started designing my website
<Papierkorb>
in that time, you could've technically coded a reasonable blogging software with rails yourself...
ghr has quit [Ping timeout: 240 seconds]
<Papierkorb>
Anyway, check out Refinery, and tell me later if it's any good ;)
<soulisson>
Hi, guys sorry to bother you, I'm trying to learn about exception and exception handling, I read about it, do you mind if I check with you?
<Papierkorb>
soulisson: ask away
sumobob has quit [Ping timeout: 276 seconds]
<soulisson>
Papierkorb, ok, if I understand correctly, an exception is an exceptional event that occurs during program execution, like a division by zero or trying to open a file that doesn't exist
Yzguy has joined #ruby
<soulisson>
correct?
<toretore>
every cms in the worls will get in your way JmcC
<toretore>
world*
<Papierkorb>
soulisson: sounds about right
<soulisson>
and when an exception occurs, the code raises an exception which means passing an exception object to the system, correct?
<Papierkorb>
soulisson: define "system"
<soulisson>
Papierkorb, the interpreter
<Papierkorb>
soulisson: you were looking for 'interpreter' or 'environment' then as word ;)
<Papierkorb>
soulisson: But pretty much. In terms of ruby, you use the "raise" method, which you pass the exception object and which then, yes, does exception handling for you
<soulisson>
ok, then the interpreter looks for an exception handler which is a piece of code able to handle the exceptional event that occured, correct?
ghr has joined #ruby
<Papierkorb>
soulisson: Yes. In practice, this "piece of code" is usually higher up in the calling stack
xxneolithicxx has joined #ruby
doublemalt_ has joined #ruby
<soulisson>
ok, the exception handler is selected based on the type of the exception object and the type declared in the exception handler?
<Papierkorb>
soulisson: Yes, the first matching handler is selected. A matching handler is one where the thrown exception is of the type, or a sub-class of this type, the handler expects.
codecop has joined #ruby
davedev24 has quit []
<soulisson>
Papierkorb, if the exception handler is not found in the current method, the interpreter goes down in the calling stack to find it, if it doesn't find the program is terminated?
ghr has quit [Ping timeout: 240 seconds]
<Papierkorb>
soulisson: Yes. This is actually the environment itself providing a 'catch all' exception handler, which upon invocation, will usually print the exception information and then terminate the process.
<JmcC>
toretore: im like the rasmus lerdof of web development
Dimik has joined #ruby
drewo has quit [Read error: Connection reset by peer]
<Papierkorb>
soulisson: I'm saying this a bit more complicated to hint at that exceptions are environment local and won't/can't be handled by the operating system
drewo has joined #ruby
mistermocha has joined #ruby
<soulisson>
Papierkorb, thank you very much, sorry for all those questions
<Papierkorb>
soulisson: Nothing to apologize for
<Papierkorb>
happy to help
<soulisson>
Papierkorb, I think that some exceptions are "seen" by the system, think this is the case with SEH on windows iirc
Mirubiri has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
ghr has joined #ruby
<soulisson>
but probably not relevant for Ruby :)
<Papierkorb>
True
<soulisson>
last question, is raise actually a method?
Hobogrammer has quit [Quit: WeeChat 0.4.2]
<Papierkorb>
soulisson: in Ruby, yes it is
<soulisson>
Papierkorb, ok, thanks
<Papierkorb>
soulisson: You can in fact override it
mistermocha has quit [Ping timeout: 250 seconds]
chip_ has joined #ruby
<soulisson>
oh ok, interesting, thanks
<Papierkorb>
Sure a deviation to many other languages, like Java or C++, where the "throw" statement is actually a special keyword
Hobogrammer has joined #ruby
chip_ has quit [Max SendQ exceeded]
Hobogrammer has quit [Client Quit]
ghr has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
Rickmasta has joined #ruby
macsteps has quit [Remote host closed the connection]
chip_ has joined #ruby
<soulisson>
Ruby is awesome :)
<soulisson>
Bye everyone
soulisson has left #ruby ["Quitte"]
karapetyan has joined #ruby
chip_ has quit [Max SendQ exceeded]
macsteps has joined #ruby
Mirubiri has quit [Read error: Connection reset by peer]
Mirubiri has joined #ruby
chip_ has joined #ruby
Stazer has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
moeabdol1 has quit [Ping timeout: 240 seconds]
fredolinhares has quit [Client Quit]
AndrewIsHere has quit [Ping timeout: 249 seconds]
duoi has quit [Ping timeout: 250 seconds]
buddhabrot_ has quit [Quit: Connection closed for inactivity]
elifoster has joined #ruby
enterprisey has joined #ruby
roamingdog has quit [Remote host closed the connection]
dennisvennink has joined #ruby
ghr has joined #ruby
Rickmasta has joined #ruby
roamingdog has joined #ruby
duoi has joined #ruby
xall has joined #ruby
enterprisey has quit [Max SendQ exceeded]
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
enterprisey has joined #ruby
xall has quit [*.net *.split]
codecop has quit [*.net *.split]
sepp2k has quit [*.net *.split]
yadobujo has quit [*.net *.split]
spider-mario has quit [*.net *.split]
xlegoman has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
Mia has quit [*.net *.split]
hogetaro has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
hakunin has quit [*.net *.split]
raldu has quit [*.net *.split]
daffy_duck has quit [*.net *.split]
framling has quit [*.net *.split]
M-mistake has quit [*.net *.split]
meatchicken has quit [*.net *.split]
reaVer has quit [*.net *.split]
Asher has quit [*.net *.split]
magicien has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
maxmanders has quit [*.net *.split]
user1_ has quit [*.net *.split]
programmerq has quit [*.net *.split]
Paradox has quit [*.net *.split]
gregf_ has quit [*.net *.split]
DEac- has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
Guest13284 has quit [*.net *.split]
thai_ has quit [*.net *.split]
alxgsv has quit [*.net *.split]
nuck has quit [*.net *.split]
FifthWall has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
guacamole has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
angseus has quit [*.net *.split]
gypsydave5 has quit [*.net *.split]
DefV_ has quit [*.net *.split]
ereslibre has quit [*.net *.split]
lianj has quit [*.net *.split]
davidmichaelkarr has quit [*.net *.split]
knight_ has quit [*.net *.split]
xybre has quit [*.net *.split]
hplar has quit [*.net *.split]
varesa has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
bob_f has quit [*.net *.split]
utkarsh_ has quit [*.net *.split]
halfdan has quit [*.net *.split]
\13k has quit [*.net *.split]
Platini has quit [*.net *.split]
tabakhase has quit [*.net *.split]
majjoha has quit [*.net *.split]
skakri has quit [*.net *.split]
saltsa has quit [*.net *.split]
joes has quit [*.net *.split]
eam has quit [*.net *.split]
tris has quit [*.net *.split]
Mr_Pancake has quit [*.net *.split]
Veejay has quit [*.net *.split]
aibot has quit [Ping timeout: 276 seconds]
hipertracker has joined #ruby
zacstewart has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
xall has joined #ruby
futilegames has joined #ruby
enterprisey has quit [Max SendQ exceeded]
nando293921 has joined #ruby
LoneHerm_ has quit [Read error: Connection reset by peer]
sleepee has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
doublemalt_ has quit [Quit: Leaving]
ekinmur has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
futilegames has quit [Quit: futilegames]
chip_ has quit [Ping timeout: 264 seconds]
Xiti` is now known as Xiti
floatingpoint has joined #ruby
cdg has joined #ruby
ghr has joined #ruby
ineb has quit [Quit: leaving]
ineb has joined #ruby
mrmortondk has joined #ruby
hipertracker has quit [Quit: hipertracker]
nofxx has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
hipertracker has joined #ruby
angseus has joined #ruby
bob_f has joined #ruby
DefV has joined #ruby
joes has joined #ruby
gypsydave5 has joined #ruby
Papierkorb has joined #ruby
reaVer has joined #ruby
eam has joined #ruby
lianj has joined #ruby
saltsa has joined #ruby
lianj has quit [Changing host]
lianj has joined #ruby
SirCmpwn has joined #ruby
raldu has joined #ruby
Paradox has joined #ruby
elaptics`away has joined #ruby
gregf_ has joined #ruby
skakri has joined #ruby
\13k has joined #ruby
framling has joined #ruby
Mr_Pancake has joined #ruby
DEac- has joined #ruby
spider-mario has joined #ruby
user1_ has joined #ruby
guacamole has joined #ruby
magicien has joined #ruby
tabakhase has joined #ruby
tris has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
varesa has joined #ruby
Veejay has joined #ruby
meatchicken has joined #ruby
xybre has joined #ruby
daffy_duck has joined #ruby
majjoha has joined #ruby
hogetaro has joined #ruby
hakunin has joined #ruby
Soulcutter has joined #ruby
yadobujo has joined #ruby
Asher has joined #ruby
maxmanders has joined #ruby
FifthWall has joined #ruby
halfdan has joined #ruby
codecop has joined #ruby
thai_ has joined #ruby
davidmichaelkarr has joined #ruby
tristanp has quit [Remote host closed the connection]
samuelkadolph has joined #ruby
hplar has joined #ruby
Mon_Ouie has joined #ruby
programmerq has joined #ruby
M-mistake has joined #ruby
ereslibre has joined #ruby
utkarsh_ has joined #ruby
knight_ has joined #ruby
Platini has joined #ruby
sepp2k has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
tristanp has joined #ruby
Es0teric has joined #ruby
zel has joined #ruby
Elvin has joined #ruby
last_staff has joined #ruby
zel is now known as Guest48262
nuck has joined #ruby
benlieb has joined #ruby
nuck is now known as Guest95553
tristanp has quit [Remote host closed the connection]
ghr has joined #ruby
tristanp has joined #ruby
nankyokusei has joined #ruby
tristanp has quit [Remote host closed the connection]
benlieb has quit [Client Quit]
bluntman has joined #ruby
alxgsv has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has joined #ruby
nando293921 has quit [Quit: Lost terminal]
mtkd has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
nando293921 has joined #ruby
mtkd has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Read error: Connection reset by peer]
nando293921 has quit [Client Quit]
aibot has joined #ruby
nando293921 has joined #ruby
Tachikomas has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
ghr has joined #ruby
mistermocha has joined #ruby
rehat has quit [Remote host closed the connection]
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
Elvin has joined #ruby
chip_ has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
drewo has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 260 seconds]
drewo has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
GnuYawk has joined #ruby
Yzguy has quit [Quit: Zzz...]
GnuYawk has left #ruby [#ruby]
GnuYawk has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
moeabdol1 has joined #ruby
ghr has joined #ruby
User458764 has joined #ruby
User458764 has quit [Remote host closed the connection]
User458764 has joined #ruby
vuoto has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Remote host closed the connection]
User458764 has joined #ruby
User458764 has quit [Remote host closed the connection]
User458764 has joined #ruby
David27 has joined #ruby
GnuYawk has left #ruby [#ruby]
crystal77 has joined #ruby
symm- has joined #ruby
teoric has joined #ruby
GnuYawk has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jakkn has quit [Read error: Connection reset by peer]
jakkn_ has joined #ruby
teoric has quit [Client Quit]
Coldblackice has joined #ruby
cdg has quit [Remote host closed the connection]
drewo has quit [Read error: Connection reset by peer]
jakkn_ is now known as jakkn
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has joined #ruby
drewo has joined #ruby
naftilos76 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
mattwashere has joined #ruby
hipertracker has quit [Quit: hipertracker]
AndrewIsHere has joined #ruby
solars has quit [Ping timeout: 240 seconds]
moeabdol2 has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
zacstewart has joined #ruby
futilegames has joined #ruby
ghr has joined #ruby
ur5us has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
rizenine has quit [Remote host closed the connection]
spider-mario is now known as spidermario
spidermario is now known as spider-mario
futilegames has left #ruby [#ruby]
moeabdol3 has joined #ruby
nhhc has quit [Quit: Leaving]
dionysus69 has joined #ruby
jakkn_ has joined #ruby
AndrewIsHere has quit []
jakkn has quit [Read error: Connection reset by peer]
mattwashere has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 264 seconds]
jakkn_ is now known as jakkn
ghr has quit [Ping timeout: 240 seconds]
moeabdol2 has quit [Ping timeout: 240 seconds]
mattwashere has joined #ruby
mattwashere has quit [Remote host closed the connection]
hxegon_afk is now known as hxegon
rhg135 has quit [Ping timeout: 244 seconds]
drewo has quit [Read error: Connection reset by peer]
elifoster has quit [Quit: going out]
nofxx has quit [Remote host closed the connection]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
drewo has joined #ruby
ghr has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
leea has joined #ruby
macsteps has quit [Remote host closed the connection]
solars has joined #ruby
edwinvdgraaf has joined #ruby
rhg135 has joined #ruby
mattwashere has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
jakkn has quit [Quit: Konversation terminated!]
chipotle has quit [Quit: cheerio]
Mirubiri has quit [Quit: Mirubiri]
Yzguy has joined #ruby
ekinmur has joined #ruby
ghr has joined #ruby
hipertracker has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
ghr has joined #ruby
Tachikomas has quit [Remote host closed the connection]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
ellistaa has joined #ruby
<ellistaa>
im trying to learn C, anyone know if ‘static int users = 10;’ is the same as @user = 10 in ruby?
<Papierkorb>
ellistaa: C does not have classes
Mirubiri has joined #ruby
<ellistaa>
ok but in ruby @ allows u to preserve value across calls
<Papierkorb>
ellistaa: 'static' in C creates a scoped, global variable, which is 'created' upon program start and only destroyed when the program ends
<ellistaa>
u dont need a class to use @
monoprotic has quit [Quit: bite me]
drewo has quit [Read error: Connection reset by peer]
<ellistaa>
so it is like @
<shevy>
did not Papierkorb just explain that it is closer to $
<Papierkorb>
ellistaa: What I mean is, if you put that static line there in the .c file on the global scope, you get a *application global* variable. If you put it inside a function, only that function has access to it
<ellistaa>
oh ok so its a bit dif
<ellistaa>
so its like $ but its also scoped
<Papierkorb>
ellistaa: reread what I just wrote to understand what I mean with 'scoped'
<Papierkorb>
Rubys $vars are the closest relative, but there's no 100% equivalent in both languages
postmodern has joined #ruby
<ellistaa>
if i dont use static then the variable does not get saved across function calls
joncol has joined #ruby
<joncol>
Hi, I'm doing a little tool that processes a yaml file and creates a PDF file from this. I want the user to supply the yaml file via a web page (I've got this part working with a Sinatra app in Ruby.) But how should I go about returning the produced PDF file to the client? The yaml file is uploaded via a POST request, so I cannot (?) use that to return the produced PDF...?
JmcC has quit [Quit: WeeChat 1.5]
<Papierkorb>
ellistaa: Well, you store that in some object. It's like storing everything inside a $global variable in your ruby script.
<ellistaa>
interesante
<Papierkorb>
ellistaa: it's equally ugly, and usually not what you want
<Papierkorb>
joncol: the POST request can totally respond with a resposne body, which can be the generated PDF file
<postmodern>
when using webmock to test Net::HTTP heavy libraries, should one write a stub app and forward all requests to it with .to_rack(), or stub each individual request/response?
<Papierkorb>
joncol: However, YAML could be a huge security issue. If possible, use JSON.
<joncol>
Papierkorb: Cool, so the sinatra function with the route can just return a "blob" of the PDF data?
vuoto has quit [Remote host closed the connection]
<Papierkorb>
joncol: Yes. Make sure to set the 'Content-Type' in the response to 'application/pdf' too
<joncol>
Papierkorb: What's the big security risk with YAML vs JSON?
<Papierkorb>
joncol: It's not that YAML is insecure by itself. But, rubys YAML parser allows to effectively instantiate any ruby class in the program
ych has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<joncol>
Papierkorb: Cool. I'm only using Ruby for the Web-stuff. The tool itself is written in Haskell.
monoprotic has joined #ruby
monoprotic has joined #ruby
monoprotic has quit [Changing host]
<Papierkorb>
joncol: Which an attacker could use to for DoS attacks, or if you get really unlucky, to somehow steal data, own your system, and such. It quickly becomes a RCE
mattwashere has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<Papierkorb>
joncol: Is the YAML passed through *unparsed*?
<joncol>
I'm parsing the YAML using Haskell.
<Papierkorb>
joncol: is the Haskell app secured against that? And, it's just uncommon for HTTP APIs to use YAML over JSON ;)
<joncol>
Btw, what is RCE?
<Papierkorb>
joncol: Make sure that Sinatra does not parse the YAML for you either. If you don't need YAMLs advanced features, JSON would be less of an headache
xall has quit [Ping timeout: 258 seconds]
<joncol>
Papierkorb: OK, thanks for your help
<Papierkorb>
RCE: Remote Code Execution, a class of vulnerabilities which enable an attacker to run code of some form on a server through a network connection
<joncol>
I see.
<joncol>
/quit
joncol has quit [Quit: leaving]
Cohedrin has joined #ruby
yadobujo has quit [Read error: Connection reset by peer]
ghr has joined #ruby
yadobujo has joined #ruby
dvinciguerra_ has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 240 seconds]
GnuYawk has quit [Quit: GNUYawk]
zacstewart has joined #ruby
ellistaa has quit [Quit: ellistaa]
ghr has joined #ruby
mattwashere has joined #ruby
last_staff has quit [Quit: last_staff]
nadir has quit [Quit: Connection closed for inactivity]
zacstewart has quit [Ping timeout: 240 seconds]
KaliLinuxGR has quit [Read error: Connection reset by peer]
naftilos76 has quit [Quit: Αποχώρησε]
chip_ has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
KaliLinuxGR has joined #ruby
sumobob has joined #ruby
GnuYawk has joined #ruby
hipertracker has quit [Quit: hipertracker]
hipertracker has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
swills_ has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
kavanagh has joined #ruby
mattwashere has quit [Remote host closed the connection]
ericsupreme has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Nanuq has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
Nanuq has joined #ruby
ghr has joined #ruby
ta_ has quit [Remote host closed the connection]
AngryBuzzy has joined #ruby
p0p0pr37_ has joined #ruby
xall has joined #ruby
nankyokusei has joined #ruby
colegatron has quit [Ping timeout: 258 seconds]
p0p0pr37 has quit [Ping timeout: 240 seconds]
p0p0pr37_ is now known as p0p0pr37
johnmilton has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
AngryBuzzy has quit [Quit: This computer has gone to sleep]
karapetyan has joined #ruby
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
roamingdog has joined #ruby
kavanagh has quit [Ping timeout: 258 seconds]
alfiemax has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
roamingdog has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
mozzarella has joined #ruby
ghr has joined #ruby
<zacts>
hi rubyists
niko79542 has joined #ruby
spider-mario has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
karapetyan has quit [Remote host closed the connection]
nettoweb has joined #ruby
<Mirubiri>
hi
spudowiar has quit [Quit: Leaving.]
karapetyan has joined #ruby
ghr has joined #ruby
Asher has quit [Quit: Leaving.]
crystal77 has joined #ruby
cd-rum has joined #ruby
sumobob has quit [Ping timeout: 250 seconds]
<niko79542>
hi guys, I have a bubble sort method that takes an optional block, or just uses '{ |a, b| a <=> b }' to sort. Is there any way to put lines 7-12 in a helper function so bubble sort function isn't so long? https://gist.github.com/niko79542/002809019aae7181a9a8de057077f175?