pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
<nakilon>
why doesn't Roda's r.on "api" do r.on "store" do r.get "" do match the "/api/store" ?
parity_ has quit [Quit: leaving]
parity has joined #ruby
Furai has joined #ruby
Furai has quit [Quit: WeeChat 3.2]
Furai has joined #ruby
Furai has quit [Client Quit]
Furai has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
<Aighearach>
I would need punctuation to even understand the question
<nakilon>
had to replace r.get "" with r.is method: :get but idk why
Winterschlaf has quit [Ping timeout: 244 seconds]
<Aighearach>
punctuation being optional doesn't imply the code will be readable without it
reset has joined #ruby
lunarkitty has joined #ruby
gearnode has joined #ruby
jonathanclarke has joined #ruby
pwnd_sfw has quit [Ping timeout: 264 seconds]
pwnd_sfw has joined #ruby
unyu has quit [Ping timeout: 252 seconds]
unyu has joined #ruby
unyu has quit [Read error: Connection reset by peer]
unyu has joined #ruby
jonathanclarke has quit [Ping timeout: 244 seconds]
unyu has quit [Read error: Connection reset by peer]
jonathanclarke has joined #ruby
unyu has joined #ruby
involans has quit [Ping timeout: 244 seconds]
unyu has quit [Read error: Connection reset by peer]
involans has joined #ruby
yosafbridge` has quit [Quit: Leaving]
yosafbridge has joined #ruby
unyu has joined #ruby
unyu has quit [Read error: Connection reset by peer]
unyu has joined #ruby
<adam12>
nakilon: Untested but r.get true do;
<adam12>
nakilon: The issue being, r.get “” tries to match “/“, but r.on “api” consumes “/api”, and r.on “store” consumes “/store”, leaving “” as remaining path (not “/“).
unyu has quit [Ping timeout: 268 seconds]
unyu has joined #ruby
lesihctej has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
lunarkitty has quit [Quit: Connection closed for inactivity]
easbarbosa has joined #ruby
kinduff has joined #ruby
ramblex has joined #ruby
<rapha>
hi all
<rapha>
anyone here who uses jruby and could take a look at this forkup?
<rapha>
ah, beats my method of blindly trying out channel names on networks :P
<adam12>
;)
adam12[m] has joined #ruby
viole has joined #ruby
gr33n7007h has joined #ruby
moo has joined #ruby
<moo>
if File.file?(file) this makes me sad :P
<adam12>
Just use it’s alias: if File.new_program_who_dis?(file)
<moo>
i got one better
<moo>
class File; def self.+(x); File.file?(x); end; end;
<moo>
File+"/etc/passwd" => true
<adam12>
LOL nice.
ollysmith has quit [Ping timeout: 268 seconds]
ollysmith has joined #ruby
adam12[m] has left #ruby [#ruby]
ollysmith_ has joined #ruby
ollysmith has quit [Ping timeout: 272 seconds]
ollysmith has joined #ruby
ollysmith_ has quit [Ping timeout: 272 seconds]
konsolebox_ has quit [Quit: .]
<robotmay>
I wonder if you could make something even more horrible by method-missing "?", like File.?(file). Not sure it'd let you define a method with just ? for a name