<postmodern>
hmm grepping around in irb's source shows lots of IRB.conf[...] instances, so doesn't look like i can pass in a custom local config
<adam12>
Gotta run. Good luck.
<postmodern>
guess i just have to keep hacking away at it
Rounin has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
shlomo has joined #ruby
shlomo_ has joined #ruby
shlomo__ has joined #ruby
shlomo has quit [Ping timeout: 256 seconds]
shlomo_ has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
BSaboia has quit [Remote host closed the connection]
dohtem has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
apple-corps has joined #ruby
<apple-corps>
Hi ruby folks. I have an array of objects or hashes (might be array of JSON like objects) and I'd like to take the first index of the array if it exists and check for a particular key. If the key does not exist I would like to throw an Exception and ideally I'd like to interpolate or display the array or object as part of the Exception message in a
<apple-corps>
readable form. Is there a quick and reasonable means to write this? I've currently satisfied the checking so my question is really how do I present the array when say arr = [...] IE "raise StandardErr.new "Non-empty Array without expected object arr.mkString()" where mkString or another method will hopefully provide a way to inspect the arrays
<apple-corps>
contents.
<apple-corps>
Maybe this is more appropriate for a ruby mailing list
shlomo__ has quit [Quit: Leaving]
postmodern has quit [Remote host closed the connection]
<apple-corps>
Looks like simply arr.to_s should work... doh!
apple-corps has quit [Quit: Client closed]
Furai has quit [Quit: WeeChat 3.3]
kinduff6 has joined #ruby
Furai has joined #ruby
kinduff has quit [Ping timeout: 256 seconds]
kinduff6 is now known as kinduff
teclator has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
<cAMP>
This prez is a good candidate for intro into tdd/bdd, IMO.
_ht has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
tkonto has joined #ruby
tkonto_ has joined #ruby
tkonto has quit [Client Quit]
tkonto_ has quit [Ping timeout: 256 seconds]
keyvan has quit [Ping timeout: 240 seconds]
keyvan has joined #ruby
lipoqil has joined #ruby
tkonto has joined #ruby
tkonto has quit [Ping timeout: 240 seconds]
tkonto_ has joined #ruby
tkonto_ is now known as tkonto
tkonto has quit [Client Quit]
tkonto has joined #ruby
tkonto has quit [Quit: tkonto]
tkonto has joined #ruby
taupiqueur has joined #ruby
gr33n7007h has quit [Ping timeout: 265 seconds]
taupiqueur_ has joined #ruby
taupiqueur has quit [Ping timeout: 265 seconds]
roadie has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
Guest2923 has joined #ruby
cornduck has quit [Ping timeout: 276 seconds]
cornduck has joined #ruby
Guest2923 is now known as Pip
Pip is now known as Guest2903
Guest2903 is now known as help
Hess has quit [Quit: Write your own quit message here.]
help is now known as Rafaleman
taupiqueur_ has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
Rafaleman is now known as pippip
constxd has joined #ruby
taupiqueur has joined #ruby
Oxfuxxx has quit [Ping timeout: 265 seconds]
Oxfuxxx has joined #ruby
pip has joined #ruby
pip is now known as Guest4613
taupiqueur has quit [Ping timeout: 240 seconds]
pippip has quit [Ping timeout: 265 seconds]
Guest4613 is now known as Pipipip
<dorian>
hey question, is something like #to_a<ClassName> a legal parameter declaration in yard?
<dorian>
if so, it's ostensibly not in the docs
<adam12>
dorian: not sure I've seen a syntax like that before. Only the interface (#to_a)
<dorian>
yeah just wanted a way to express that i don't care if the input *is* an array or not, but only that it can be made into one, but whatever it is it must contain the given types
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
Pipipip has quit [Read error: Connection reset by peer]
Pipipip has joined #ruby
Pipipip has quit [Read error: Connection reset by peer]
Pipipip has joined #ruby
Bounga has quit [Ping timeout: 252 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
<nakilon>
I don't get it; I need to load a file with multiple JSONs; both json-stream and oj throw an exception right when the second object comes; yajl does not work at all, saying uninitialized constant Yajl::Parser
<nakilon>
ok, had to deinstall yajl and install yajl-ruby; seems working now
roadie has quit [Ping timeout: 252 seconds]
taupiqueur has quit [Ping timeout: 256 seconds]
gcd has quit [Remote host closed the connection]
ur5us has joined #ruby
Guest87 has joined #ruby
Guest87 has quit [Client Quit]
taupiqueur has joined #ruby
roadie has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
roadie has quit [Remote host closed the connection]
Rounin has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
taupiqueur has quit [Ping timeout: 245 seconds]
TCZ has joined #ruby
Guest42 has joined #ruby
puts has joined #ruby
TCZ has quit [Ping timeout: 256 seconds]
dohtem has quit [Quit: Connection closed for inactivity]