karapetyan has quit [Remote host closed the connection]
duderono_ has quit [Ping timeout: 263 seconds]
orbyt_ has joined #ruby
AJA4350 has joined #ruby
Sina has quit [Quit: Connection closed for inactivity]
herbmillerjr has joined #ruby
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 265 seconds]
eckhardt has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
mostly-harmless has quit [Ping timeout: 256 seconds]
eckhardt has quit [Ping timeout: 265 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
anisha has joined #ruby
harrycs has joined #ruby
mostly-harmless has joined #ruby
eckhardt has joined #ruby
minimalism has joined #ruby
kurko_ has joined #ruby
kurko__ has quit [Ping timeout: 255 seconds]
duderonomy has joined #ruby
marr has quit [Ping timeout: 255 seconds]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
harrycs has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harrycs has joined #ruby
cthulchu has quit [Ping timeout: 240 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
meinside has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
dimik--- has quit [Ping timeout: 260 seconds]
Dimik_djan has quit [Ping timeout: 268 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
eckhardt has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
gizmore has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
GodFather has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Remote host closed the connection]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
pilne has quit [Quit: Leaving]
giraffe has joined #ruby
tpendragon has joined #ruby
cyberg has quit [Read error: Connection reset by peer]
DTZUZU has quit [Quit: WeeChat 1.9]
marxarelli is now known as marxarelli|afk
memo1 has joined #ruby
<harrycs>
Anyone have best practices for using RSpec with a test db /without/ Rails? I'm unsure what's the best way to proceed - I feel like environmental variables are the best method but I want to be sure to not implement them stupidly
tdy has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
SteenJobs has joined #ruby
<Radar>
harrycs: CONTROVERSIAL
<Radar>
harrycs: what would you use to talk to the test database?
dinfuehr has joined #ruby
konsolebox has joined #ruby
mroutis has quit [Ping timeout: 240 seconds]
<harrycs>
Radar: I'm using ActiveRecord. Mainly so people flame me on irc haha
harrycs has quit [Remote host closed the connection]
<harrycs>
both dev and test dbs are postgres
montanonic has quit [Ping timeout: 260 seconds]
harrycs has joined #ruby
<Radar>
harrycs: ok, so no Rails but ActiveRecord? You're in luck!
shinnya has joined #ruby
<harrycs>
i think i got it figured out. basically, spec_helper declares an environmental variable, and the app only does if one hasn't been declared yet. I use this variable to determine which set is loaded from my database config yml
harrycs has quit [Remote host closed the connection]
<harrycs>
i'm almost positive that this is a stupid way to do it for some reason. gotta live life on the edge
<Radar>
harrycs: Keeps my environment vars out of my code.
<Radar>
my spec_helper in this app loads those environment variables in a roundabout way, but you could have a file that's the same and load it with `Dotenv.load(".env.test")` in your spec_helper
harrycs has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
harrycs has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
harrycs has quit [Remote host closed the connection]
harrycs has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
masterasia has quit [Read error: Connection reset by peer]
haylon has quit [Remote host closed the connection]
harrycs has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jamesaxl has joined #ruby
clemens3 has joined #ruby
Yzguy has quit [Quit: Zzz...]
ur5us has quit [Ping timeout: 240 seconds]
toks has joined #ruby
toks has quit [Client Quit]
ta_ has joined #ruby
alex`` has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
arescorpio has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
alfiemax has joined #ruby
sauvin has joined #ruby
karapetyan has joined #ruby
minimalism has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
lelliott has quit [Remote host closed the connection]
nielsk has quit [Ping timeout: 265 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
byte512 has quit [Ping timeout: 264 seconds]
mr_rich101 has quit [Ping timeout: 255 seconds]
DarkArc has quit [Ping timeout: 264 seconds]
nielsk has joined #ruby
cyberRodent has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
lightstalker has quit [Ping timeout: 240 seconds]
Dark_Arc has joined #ruby
mr_rich101 has joined #ruby
n3b has quit [Ping timeout: 240 seconds]
cyberRodent has joined #ruby
clemens3 has quit [Ping timeout: 260 seconds]
byte512 has joined #ruby
mojca has left #ruby [#ruby]
sidx64 has joined #ruby
aupadhye has joined #ruby
fullstack has quit [Ping timeout: 264 seconds]
fullstack has joined #ruby
n3b has joined #ruby
sliceline has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 256 seconds]
suukim has joined #ruby
zapata_ is now known as zapata
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lightstalker has joined #ruby
ta_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
erlend has quit [Ping timeout: 260 seconds]
Levi has joined #ruby
erlend has joined #ruby
<Levi>
Hello, please is there any way to make a condition based on object existence in method call? Example: url(:home, :index, @object ? :object => @object : :object => nil)
<Levi>
only when object exists I would like to add parameter :object
montanonic has quit [Ping timeout: 260 seconds]
<apeiros>
Levi: sounds like you can just do :object => @object
<apeiros>
since if @object is nil, you pass nil anyway
<apeiros>
so you can just use @object straight
<Levi>
yes, it works, oh my .. thanks !
<Levi>
I love ruby
<Levi>
this did not came to my mind
<Levi>
I was expecting necessarity of definition
<Levi>
thank you so much it helped a lot
<apeiros>
you mean defining the instance variable?
<Levi>
yes
<apeiros>
that's not the same as an object
<apeiros>
variables and objects are fundamentally different things
<Levi>
sorry, I was thinking bad way
<apeiros>
but yes, it's certainly better if you have an `@object = nil` in your initialize
<Levi>
okay
<apeiros>
gotta run, laters
apeiros has quit [Remote host closed the connection]
Levi has quit [Quit: Leaving.]
apeiros has joined #ruby
<baweaver>
Qo 0.1.7 is out. Now with dig, deep hash matching, and count_by :D
<baweaver>
dminuoso matcher + m looks semi-monadic if you squint
workmad3 has joined #ruby
<dminuoso>
semi monadic?
<dminuoso>
What is semimonadic?
<baweaver>
Kinda like
<baweaver>
because all m/matcher values are wrapped as [status, response] which gets pulled by match
anisha has joined #ruby
<baweaver>
value -> matcher(String) { |v| v } -> .... -> piped value or nil
<dminuoso>
uhh what?
<baweaver>
as soon as any matcher registers a match it'll pipe the value to the block and return the value of the block
<baweaver>
or nil in the case that nothing is found
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<dminuoso>
`m` is a monad if arrows of the shape `a -> m b` form a category.
<dminuoso>
What's your m
<dminuoso>
Or are you just saying that you're in the `nil` monad?
sagax has joined #ruby
dionysus69 has joined #ruby
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #ruby
apeiros has joined #ruby
mikhael_k33hl has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
sanscoeur has quit [Remote host closed the connection]
konsolebox has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
<mikhael_k33hl>
If thread.kill is not recommended, what's the best way to stop a thread?
<Radar>
the inevitable passing of time
troys has quit [Quit: Bye]
<Radar>
all threads die, in time
<jokester>
send a message to the thread, and let it end in peace
<dminuoso>
SIGBUS the Process.
<dminuoso>
I promise the thread will stop.
rabajaj has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
inerthia has joined #ruby
jamesaxl has joined #ruby
alex`` has quit [Ping timeout: 264 seconds]
ianfleeton has joined #ruby
kaawaa has joined #ruby
psychicist__ has joined #ruby
dr3w_ has joined #ruby
mkaito has quit [Ping timeout: 256 seconds]
ianfleeton has quit [Client Quit]
kaawaa has quit [Read error: Connection reset by peer]
kaawaa has joined #ruby
venmx has joined #ruby
andikr has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
ryzokuken has quit [Remote host closed the connection]
mkaito has joined #ruby
mkaito has quit [Changing host]
mkaito has joined #ruby
sidx64 has joined #ruby
psychicist__ has quit [Read error: Connection reset by peer]
psychicist__ has joined #ruby
SteenJobs has quit [Ping timeout: 265 seconds]
Burgestrand has joined #ruby
imode has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
atchoum has joined #ruby
schneider has joined #ruby
venmx has quit [Remote host closed the connection]
tomphp has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
atchoum has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
marr has joined #ruby
dionysus69 has joined #ruby
warbaque has joined #ruby
mlkkk has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 264 seconds]
TomyWork has joined #ruby
mikecmpbll has joined #ruby
<warbaque>
I have a nested object e.g. {'b'=>['2',1','3'],'c'=>{...}, 'a'='10'}, and I would like all elements and sub elements to be sorted i.e. {'a'='10', 'b'=>[1','2','3'],'c'=>{...}} and turn it into a string
alfiemax has quit [Remote host closed the connection]
KeyJoo has joined #ruby
<dminuoso>
warbaque: Though if possible you should avoid such heterogenous data structures.
<dminuoso>
They are generally a PITA to work with.
karapetyan has joined #ruby
<dminuoso>
e.g. if you could do {a: [10], b: [1,2,3]} instead of {a: 10, b: [1,2,3] } you will have a better time
kapil___ has joined #ruby
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<phaul>
what wasn't clear to me is that this thing can be deeply nested, or just the top layer and the next? warbaque ?
anisha has quit [Quit: This computer has gone to sleep]
<warbaque>
every value can nest more
<apeiros>
warbaque: what do you have yourself so far?
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<warbaque>
apeiros: nothing just an arbitary querystring that can contain pretty much anything
<apeiros>
warbaque: I meant your approach
<apeiros>
code you wrote trying to solve this
nausea has quit [Remote host closed the connection]
<konsolebox>
warbaque: hint: you use a recursive function
<warbaque>
konsolebox: thats my idea
<warbaque>
arrays can have other arrays or hashmaps mixed in
* apeiros
waits for warbaque to show what they wrote so far
<warbaque>
nothing that works yet
<apeiros>
it doesn't need to be working
<konsolebox>
this is going to be a problem though: [3, 2, [4, 6, 5]]
tomphp has quit [Read error: No route to host]
<phaul>
091812 phaul | how does ['1'] and '1' compare? :)
<konsolebox>
+1
<warbaque>
for example strings before arrays before hashes, as long as it's consistent
vondruch has joined #ruby
<konsolebox>
i guess you use a custom sort{} for that
tomphp_ has joined #ruby
<apeiros>
I have a solution. but as said before, I want to see your try first.
ellcs has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch_ is now known as vondruch
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
schneider has joined #ruby
amar has joined #ruby
faces has joined #ruby
hkais has joined #ruby
tomphp has joined #ruby
face has quit [Ping timeout: 256 seconds]
tomphp_ has quit [Ping timeout: 256 seconds]
pd2000 has joined #ruby
aufi has joined #ruby
amatas has joined #ruby
Beams has joined #ruby
tvw has joined #ruby
suukim has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
vondruch has joined #ruby
rahul_bajaj has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
rahul_bajaj has quit [Client Quit]
rabajaj has quit [Ping timeout: 265 seconds]
TinkerT has joined #ruby
<apeiros>
warbaque: look, I'm willing to help. what I'm not willing to is solve it for you. and your current silence makes it look as though you were out for some cheap free labor.
amar has quit [Ping timeout: 260 seconds]
<warbaque>
currently trying to solve it
pd2000 has quit [Quit: Leaving]
zapata has quit [Read error: Connection reset by peer]
tvw has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
zapata has joined #ruby
\void has joined #ruby
vondruch has joined #ruby
tvw has joined #ruby
alex`` has joined #ruby
Mike11 has joined #ruby
alfiemax_ has joined #ruby
ur5us has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
alfiemax has quit [Ping timeout: 265 seconds]
amatas has quit [Ping timeout: 255 seconds]
KeyJoo has quit [Ping timeout: 268 seconds]
shinnya has joined #ruby
SteenJobs has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Ping timeout: 264 seconds]
GodFather has quit [Ping timeout: 246 seconds]
SteenJobs has joined #ruby
<konsolebox>
warbaque: you should just share what you have done so far, and tell where you are currently stuck
mtkd has quit [Read error: Connection reset by peer]
<leitz>
newb question. I'm seeing a colon ":" use I don't understand. In this, it is right after 'something'. What's it called? my_thing = Thing.new(something:)
<warbaque>
arrays cant be keys in this case, but ['3','1'] and ['1','3'] should be evaluated as same and sorted accordinly
amar_ has joined #ruby
downtime is now known as uptime
ur5us has quit [Remote host closed the connection]
<konsolebox>
warbaque: i think i now get what you meant. sorting of subvalues should have come first because it affects some comparisons like arrays.
ur5us has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 240 seconds]
<konsolebox>
warbaque: anyway, this is my final solution: https://bpaste.net/show/a4d3e6e45a45. i have to go. the difference in behavior probably would just be how Enumerable#sort internally behaves, and how you compose compare().
<warbaque>
thanks!
<konsolebox>
so with that i get {"a"=>[["3", "2", "1"], ["2"]]} as {"a"=>[["1", "2", "3"], ["2"]]}.
<konsolebox>
you're welcome if you really mean it.
<warbaque>
yeah, I do :)
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adlerdias has joined #ruby
Cavallari has joined #ruby
zautomata2 has joined #ruby
SteenJobs has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
apparition has joined #ruby
SteenJobs has quit [Ping timeout: 264 seconds]
vondruch has joined #ruby
AJA4350 has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
KeyJoo has joined #ruby
suukim has joined #ruby
dviola has joined #ruby
foxxx0 has quit [Ping timeout: 260 seconds]
adlerdias has quit [Ping timeout: 264 seconds]
houhoulis has joined #ruby
foxxx0 has joined #ruby
ellcs has joined #ruby
adlerdias has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
reber has quit [Read error: Connection reset by peer]
jeffreylevesque has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
houhouli_ has joined #ruby
houhoulis has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
alfiemax has joined #ruby
mostlybadfly has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
SteenJobs has joined #ruby
nowhereman_ has quit [Ping timeout: 268 seconds]
SteenJobs has quit [Ping timeout: 276 seconds]
raynold has quit [Quit: Connection closed for inactivity]
Morrolan has quit [Quit: Goodbye]
Morrolan has joined #ruby
KeyJoo has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 264 seconds]
jcalla has joined #ruby
SteenJobs has joined #ruby
duderonomy has joined #ruby
SteenJobs has quit [Ping timeout: 256 seconds]
rf has joined #ruby
rf` has joined #ruby
rf` has quit [Client Quit]
SteenJobs has joined #ruby
rf has quit [Client Quit]
ramfjord has joined #ruby
envex has joined #ruby
nowhereman_ has joined #ruby
SteenJobs has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
erlend has quit [Ping timeout: 276 seconds]
erlend has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
kaawaa has quit [Ping timeout: 268 seconds]
John_Ivan has joined #ruby
hkais has quit [Quit: Leaving.]
ciscam has quit [Ping timeout: 268 seconds]
pd2000 has joined #ruby
ciscam has joined #ruby
alfiemax has quit [Remote host closed the connection]
Psybur has joined #ruby
tvw has joined #ruby
jeffreylevesque has joined #ruby
kaawaa has joined #ruby
roshanavand has quit [Remote host closed the connection]
^mtkd has quit []
jeffreylevesque_ has joined #ruby
griffindy has joined #ruby
mtkd has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
oleo has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
kaawaa has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
pd2000 has quit [Remote host closed the connection]
apparition has quit [Read error: Connection reset by peer]
rwb has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
pd2000 has joined #ruby
synthroid has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
SteenJobs has joined #ruby
minimalism has quit [Quit: minimalism]
yokel has joined #ruby
duderonomy has quit [Ping timeout: 245 seconds]
SteenJobs has quit [Ping timeout: 260 seconds]
imode has joined #ruby
SteenJobs has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhouli_ has quit [Remote host closed the connection]
dimik--- has joined #ruby
ramfjord has joined #ruby
Mike11 has quit [Quit: Leaving.]
ellcs has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
SteenJobs has quit [Ping timeout: 276 seconds]
kaawaa has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
Dimik_djan has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
banisterfiend has joined #ruby
duderonomy has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
kaawaa has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Read error: Connection reset by peer]
griffindy has quit [Client Quit]
gigetoo has joined #ruby
iMadper has joined #ruby
SteenJobs has joined #ruby
banisterfiend has joined #ruby
cyberg has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
SteenJobs has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
Burgestrand has quit [Quit: Closing time!]
rwb has joined #ruby
kaawaa has quit [Read error: Connection reset by peer]
kaawaa has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
bmurt has quit [Remote host closed the connection]
bmurt has joined #ruby
mlkkk has quit [Ping timeout: 265 seconds]
cadillac_ has joined #ruby
chouhoulis has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
SteenJobs has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has quit [Ping timeout: 268 seconds]
pastorinni has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swistak35 has joined #ruby
workmad3 has joined #ruby
venmx has quit [Ping timeout: 268 seconds]
ledestin has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Rapture has joined #ruby
dionysus69 has joined #ruby
SteenJobs has quit [Ping timeout: 260 seconds]
k0mpa has joined #ruby
Burgestrand has joined #ruby
ledestin has quit [Ping timeout: 264 seconds]
kapil___ has joined #ruby
kurko_ has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
moretti has joined #ruby
moretti has quit [Quit: leaving]
mikhael_k33hl has quit [Ping timeout: 260 seconds]
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
Dimik_djan has quit [Ping timeout: 240 seconds]
SteenJobs has quit [Ping timeout: 276 seconds]
imode has joined #ruby
amar_ has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 264 seconds]
donofrio has joined #ruby
erlend has joined #ruby
SteenJobs has joined #ruby
venmx has joined #ruby
kurko_ has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
Yogui has joined #ruby
yeticry has joined #ruby
cschneid_ has quit [Remote host closed the connection]
SteenJobs has quit [Ping timeout: 240 seconds]
netherwolfe has joined #ruby
cschneid_ has joined #ruby
hinbody has quit [Quit: leaving]
jxv has joined #ruby
hinbody has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
yeticry has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
bmurt has quit [Client Quit]
yorickpeterse has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
SteenJobs has joined #ruby
mtkd has joined #ruby
bmurt has joined #ruby
Asher has joined #ruby
pd2000 has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
<Eiam>
ElDoggo: method(:blah =>thing) is valid, or method(blah:thing) which is the same as method({:blah=>thing})
sanscoeur has joined #ruby
<phaul>
ElDoggo: there is a link in the description thereto a youtube video, that will explain things
<ElDoggo>
great
<ElDoggo>
If I make a class and pass it a block, does that mean the initialize method of the class has a yield in it?
<ElDoggo>
(should have)
<elomatreb>
It should (but it won't error if it doesn't, the block will be silently ignored)
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #ruby
amar has joined #ruby
amar has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dipnlik>
anyone here managed to install the tiny_tds gem in Ubuntu? already installed freetds-dev via apt, but gem cannot detect it is installed. don't know freetds location in my machine to instruct the gem like I do with the mysql gem
<ElDoggo>
OMG, nobody has every made me a class before.
<ElDoggo>
Got it -- this makes perfect sense.
<ElDoggo>
Thanks!
<havenwood>
ElDoggo: ^ that's en example implementation. I think I'd personally prefer to `yield self` and `do |config|` rather than instance_eval.
<havenwood>
ElDoggo: I updated the gist to show ElDoggu, which uses `yield self`.
banisterfiend has joined #ruby
amar has quit [Ping timeout: 260 seconds]
<ElDoggo>
Second example tastes more like traditional Ruby?
<havenwood>
ElDoggo: I added a third example, ElDogga, which is more idiomatic Ruby.
d3mon has joined #ruby
d3mon has left #ruby [#ruby]
<havenwood>
ElDoggo: One step simpler is to not use a block.
<havenwood>
fixed typo
imode has quit [Ping timeout: 256 seconds]
<ElDoggo>
ElDogga is nice and clean. I'll stick to this syntax. Thanks again.
venmx has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
synthroi_ has joined #ruby
biberu has joined #ruby
imode has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit []
TomyWork has quit [Remote host closed the connection]
biberu has joined #ruby
hammer has quit [Remote host closed the connection]
hammer has joined #ruby
grea has joined #ruby
bmurt has joined #ruby
hammer has quit [Remote host closed the connection]
hammer has joined #ruby
lelliott has quit [Remote host closed the connection]
eckhardt has quit [Read error: Connection reset by peer]
grea has quit [Client Quit]
eckhardt has joined #ruby
dwcraig has joined #ruby
emilford has joined #ruby
synthroid has joined #ruby
emilford has quit [Quit: leaving]
emilford has joined #ruby
ta_ has quit [Remote host closed the connection]
synthroi_ has quit [Ping timeout: 240 seconds]
pd2000 has quit [Remote host closed the connection]
pd2000 has joined #ruby
<Eiam>
yes, I prefer the 3rd style but its ruby
<Eiam>
do whateva
<Eiam>
just do it consistently ;)
* Eiam
has flashbacks to the one file in his repo that was written with meta programming bullshit amidst thousands of normal straight forward code and how he hated clicking on that file or ever fixing bugs in it
GodFather has quit [Ping timeout: 246 seconds]
pastorinni has quit [Ping timeout: 265 seconds]
RougeR has quit [Ping timeout: 240 seconds]
p_d has joined #ruby
pd2000 has quit [Ping timeout: 260 seconds]
<phaul>
ElDoggo: now, that you understand how to do this, you can complete the kata I linked :)
fmccann has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 264 seconds]
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
jottr has joined #ruby
trautwein has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
sauvin has quit [Remote host closed the connection]
sameerynho has joined #ruby
tlaxkit has quit [Quit: Saliendo...]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
ianfleeton has joined #ruby
karapetyan has quit [Remote host closed the connection]
fmccann has joined #ruby
ta_ has joined #ruby
dimik--- has quit [Ping timeout: 240 seconds]
suukim has quit [Quit: Konversation terminated!]
mroutis has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
<ElDoggo>
phaul: done, thanks!
ianfleeton has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ianfleeton has joined #ruby
ianfleeton has quit [Client Quit]
<phaul>
cool :)
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has quit [Remote host closed the connection]
dimik--- has joined #ruby
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
trautwein has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
p_d has quit [Remote host closed the connection]
imode has quit [Ping timeout: 276 seconds]
p_d has joined #ruby
despai has quit [Quit: ...]
ta_ has quit [Remote host closed the connection]
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
trautwein has joined #ruby
p_d has quit [Remote host closed the connection]
p_d has joined #ruby
RougeR has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
pd2000 has joined #ruby
erlend has joined #ruby
pd2000 has quit [Max SendQ exceeded]
schneider has joined #ruby
roshanavand has joined #ruby
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
pd2000 has joined #ruby
pd2000 has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 260 seconds]
p_d has quit [Ping timeout: 240 seconds]
SeepingN has joined #ruby
pastorinni has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
mtkd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
lelliott has joined #ruby
dimik--- has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
synthroid has quit [Remote host closed the connection]
Dimik_djan has quit [Ping timeout: 260 seconds]
pastorinni has quit []
schneider has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
ams__ has joined #ruby
AgentVenom has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
schneider has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
mtkd has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hkais has quit [Quit: Leaving.]
schneider has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
GodFather has joined #ruby
sidx64_ has joined #ruby
schneider has joined #ruby
roshanavand has quit [Remote host closed the connection]
sidx64 has quit [Ping timeout: 240 seconds]
despai has joined #ruby
adlerdias has quit [Quit: adlerdias]
schneider has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
SteenJobs has joined #ruby
schneider has joined #ruby
sanscoeur has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
sanscoeur has quit [Remote host closed the connection]
<miah>
i think because he decided to publish his books on C# and Java
<miah>
thankfully archive.org is there to save me =)
sameerynho has quit [Ping timeout: 264 seconds]
venmx has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yorickpeterse has quit [Quit: WeeChat 2.1]
workmad3 has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
lelliott has quit [Remote host closed the connection]
despai has quit [Quit: ...]
rwb has joined #ruby
schneider has joined #ruby
<harry_>
miah: i'll check it out, thanks!
eckhardt has joined #ruby
yorickpeterse has joined #ruby
<harry_>
ah perfect, even a pdf
<harry_>
err, maybe not, but thanks again!
rwb has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 263 seconds]
psychicist__ has quit [Ping timeout: 255 seconds]
Phrogz has quit []
conceivably has joined #ruby
psychicist__ has joined #ruby
schneider has joined #ruby
jdawgaz has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli is now known as marxarelli|afk
<conceivably>
Hi. In the documenation the unary '-' method is designated as '#-@'. Is this just some specific convention for unary methods, or is it to avoid arity ambiguity generally? What is this convention called and how can I find out more about it? It's sort of difficult to google.
venmx has quit [Remote host closed the connection]
<miah>
pdf is only a small part of it :(
<miah>
i find the brpreiss book a bit easier to parse than the algorithms book, but the algorithms book is good too
schneider has quit [Ping timeout: 240 seconds]
<elomatreb>
conceivably: That's how they are defined, i.e. if you want to define the unary minus for your class you do `def -@`
sammi`_ has joined #ruby
<harry_>
miah: sweet, i'll check them both out - thanks
netherwolfe has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
schneider has joined #ruby
sammi` has quit [Quit: Lost terminal]
ta_ has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 260 seconds]
eckhardt has joined #ruby
phate408 has quit [Read error: Connection reset by peer]
phate408 has joined #ruby
bmurt has joined #ruby
<havenwood>
conceivably: Most of the languages that influenced Ruby had unary operators of some sort. I don't know of any that used the trailing @ convention though. I'm not sure where it came from.
schneider has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
<conceivably>
I see. Thanks for your input elomatreb & havenwood :)
sameerynho has joined #ruby
<havenwood>
>> def !@; :conceivably end; !42
<ruby[bot]>
havenwood: # => private method `!' called for 42:Fixnum (NoMethodError) ...check link for more (https://eval.in/987987)