apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
LoneHerm_ has joined #ruby
ElFerna has quit [Quit: Textual IRC Client: www.textualapp.com]
E7F3RN4 has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Ping timeout: 260 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
eljimmy has joined #ruby
byte512 has quit [Ping timeout: 260 seconds]
anuxivm has left #ruby [#ruby]
symm- has quit [Ping timeout: 256 seconds]
Jackneill has quit [Remote host closed the connection]
shmuli has quit [Read error: Connection reset by peer]
shmuli has joined #ruby
Capela has joined #ruby
E7F3RN4 has quit [Ping timeout: 250 seconds]
nekcode has joined #ruby
kobain has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
Capela has quit [Ping timeout: 260 seconds]
E7F3RN4 has joined #ruby
evidex has quit [Ping timeout: 260 seconds]
jshjsh has joined #ruby
voltorb has joined #ruby
<voltorb> what is the best way to represent chess pieces?
infernix has quit [Ping timeout: 250 seconds]
nopolitica has joined #ruby
JoshS has quit [Ping timeout: 244 seconds]
<mwlang> voltorb: you mean like “R N B K Q B N R” ?
<voltorb> i mean first of all how will i know what piece is on the board and how will i be able to move it
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
<baweaver> You're going to have to do some research there
blackmesa has quit [Quit: WeeChat 1.5]
<baweaver> sketch it out, get some paper and write it down
<voltorb> i already have
<mwlang> voltorb: do you have a a representation of a board, yet?
<voltorb> this part is way over my head
renderful has joined #ruby
<baweaver> Might it then be wise to google around for already built libraries in the language of the day?
Channel6 has joined #ruby
<voltorb> i have an array with 64 pieces
<mwlang> voltorb: I’m with baweaver — study other people’s code in Ruby to get some ideas: http://www.theodinproject.com/courses/ruby-programming/lessons/ruby-final-project
<baweaver> (I'd found the same link)
<voltorb> is that okay to do and not considered cheating?
renderful has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
<mwlang> voltorb: I didn’t say steal other people’s code and claim as your own. ;-) Ultimately, if you’re doing this for a class project, you have to understand what other people did and defend your own choices should the teacher confront you. As long as you learned from others and applied your own solution and solved it yourself, I’d say you achieved the purpose of the assignment.
<voltorb> thank you
<voltorb> all i care about is learning
<voltorb> i just don't get this part of programming
<mwlang> “this part"?
<voltorb> yeah the part where you can move chess pieces and set them on the board
<voltorb> that part
<voltorb> i get how to use the dom and css and html
flashpoint9 has quit [Remote host closed the connection]
<mwlang> well, as you said, the board is 64 spaces. The space is either empty or holds one chess piece.
<mwlang> each chess piece can move to only certain spaces based on simple, but unique rules for each piece.
infernix has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<mwlang> each turn, you ask a player for a piece and target to move to. “WQ” to A1 (where rows are A, B, C, etc. and columns are 1, 2, 3, etc.) You translate A1 to the first position in the Array…you search the array for where the “WQ” is and then make sure the requested move is legal. If it is, move it, if not, berate the poor player.
shmuli has quit [Remote host closed the connection]
<mwlang> basically, you have to break every single step down to it’s smallest level and start mapping that to code.
<voltorb> well i get that much
<voltorb> i just don't get the other part the implementation
phoo1234567 has quit [Quit: Gotta go]
charliesome has joined #ruby
fooble has quit [Quit: Page closed]
<mwlang> well…what are your thoughts on how to represent a piece?
weemsledeux has joined #ruby
enterprisey has joined #ruby
blackbombay has joined #ruby
niftylettuce has joined #ruby
<voltorb> if i had thoughts...
<voltorb> i'm not too sure
<voltorb> i know it would be a good idea to break apart the objects
<voltorb> like one file per object
splud_ has quit [Quit: splud_]
blackbombay_ has quit [Ping timeout: 250 seconds]
rabbleproof has joined #ruby
<voltorb> create a board object, each individual piece object, and a rules object
ICantCook has joined #ruby
<mwlang> that sounds good.
<voltorb> that's the way i'd start
<voltorb> so four separate files and then use the require keyword
ramfjord has quit [Ping timeout: 268 seconds]
<voltorb> i'm not looking at solutions right now and i haven't ever looked at a solution before
<havenwood> voltorb: Do you want a piece to be an instance of a String, or Array or Hash or Struct or do you want to define your own piece Class? How about for board?
<voltorb> oh boy
<voltorb> now this is where this complicated stuff is going over my head
<mwlang> well, that’s really getting into the particulars of the language syntax, but really, you should be thinking about what makes each object something worth modeling.
symm- has joined #ruby
<voltorb> well the rules will tell you whether or not you can move the piece there or whether the game is still playable or whether or not you can take a piece
<voltorb> the board will just hold all the pieces
nettoweb has joined #ruby
<voltorb> and the pieces will have a way to move on the board
<voltorb> like the pieces will have a method for moving defined in the file
<mwlang> there you go. there’s your first method…perhaps call it “move_to” and that method takes a coordinate on the board as a parameter.
pwnd_nsfw has joined #ruby
marr has quit [Ping timeout: 252 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
kingkong- has quit [Remote host closed the connection]
<mwlang> then your next question should be, does the piece inheritently know where it is on the board or does the board keep track of the piece and feeds it both it’s starting position/coordinate and desired target position/coordinate?
<mwlang> that’s a design choice for the programmer. You just have to decide which is easiest for you to think about as you code it.
E7F3RN4 has quit [Quit: WeeChat 1.5]
kingkong- has joined #ruby
<voltorb> i know this is stupid
<voltorb> but how do i know which design choice to go for?
jenrzzz_ has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
<mwlang> voltorb: which makes more sense to you? Piece#move_to(starting_coordinate, ending_coordinate) or Piece#move_to(ending_coordinate) (and then in the method, self.board.get_starting_position(self)
E7F3RN4 has joined #ruby
<adam12> Borderline Rails'y, but has anybody seen a nice pattern to dynamically set the class of a serialized ActiveRecord field? Something paired with BasicObject perhaps?
<havenwood> or a smart board with stupid pieces
<havenwood> adam12: say more?
solocshaw has joined #ruby
<adam12> havenwood: a JSON serialized column, but when initiated by ActiveRecord, is a class of a dynamic nature, dependent on another field in the record.
<mwlang> gotta go. daughter calls for bedtime.
<adam12> Allowing me to have proper accessors, etc. on it.
SCHAAP137 has quit [Ping timeout: 250 seconds]
palms has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
astrobunny has joined #ruby
ocbtec has quit [Quit: leaving]
Channel6 has quit [Quit: Leaving]
xall has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 252 seconds]
E7F3RN4 has quit [Ping timeout: 268 seconds]
palms has quit [Ping timeout: 260 seconds]
bob434 has joined #ruby
nekcode has quit [Quit: nekcode]
alibby has quit [Quit: Leaving.]
enterprisey has quit [Remote host closed the connection]
dnicole has joined #ruby
xall has joined #ruby
y2mq37 has quit [Quit: Leaving]
Capela has joined #ruby
mrwn has joined #ruby
dnicole has quit [Ping timeout: 256 seconds]
davidt has quit []
xall has quit [Ping timeout: 250 seconds]
Capela has quit [Ping timeout: 260 seconds]
dsuper7 has joined #ruby
JesseH has joined #ruby
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
tdy has joined #ruby
webguynow has quit [Ping timeout: 265 seconds]
webguynow has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
preyalone has joined #ruby
ziarkaen_ has quit [Ping timeout: 250 seconds]
ziarkaen has quit [Ping timeout: 250 seconds]
railssmith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.6]
solocshaw has quit [Ping timeout: 260 seconds]
gusrub has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
dsuper7 has quit [Quit: Im sleeeeeepy ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
marxarelli|afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fichtenstein has quit [Quit: Fichtenstein]
flashpoint9 has joined #ruby
arescorpio has joined #ruby
Evansbee has joined #ruby
flashpoint9 has quit [Ping timeout: 260 seconds]
bob_f has quit [Ping timeout: 248 seconds]
BTRRY has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
bob_f has joined #ruby
nowhere_man has joined #ruby
nopolitica has quit [Quit: leaving]
nopolitica has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
creat has joined #ruby
Trynemjoel has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
bruce_lee has joined #ruby
User458764 has quit [Max SendQ exceeded]
hutch34 has joined #ruby
User458764 has joined #ruby
nchambers has joined #ruby
tubuliferous_ has joined #ruby
cdg has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
voltorb is now known as brotlov
brotlov is now known as voltorb
marxarelli has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Capela has joined #ruby
Channel6 has joined #ruby
railssmith has joined #ruby
Jameser has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
hahuang61 has joined #ruby
Pupeno has quit [Remote host closed the connection]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
palms has joined #ruby
KnownSyntax has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Trynemjoel has joined #ruby
cdg has quit [Remote host closed the connection]
tyang has joined #ruby
sneakerhax has joined #ruby
tyang_ has quit [Ping timeout: 260 seconds]
chadwtaylor has joined #ruby
flashpoint9 has joined #ruby
tau has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 260 seconds]
xall has joined #ruby
djbkd has quit [Remote host closed the connection]
Felipe__ has joined #ruby
chadhs has joined #ruby
d^sh has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
Tharbakim has quit [Ping timeout: 252 seconds]
Tharbakim has joined #ruby
SpikeMaster has joined #ruby
SpikeMaster has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 256 seconds]
harfangk has joined #ruby
Felipe__ has quit [Quit: Leaving]
jenrzzz has joined #ruby
blackbombay has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
whomp has quit [Ping timeout: 244 seconds]
coyo has joined #ruby
optiz0r has quit [Ping timeout: 268 seconds]
dsuper7 has joined #ruby
whomp has joined #ruby
nankyokusei has joined #ruby
zukin has joined #ruby
howdoi has joined #ruby
mrwn has quit [Ping timeout: 250 seconds]
<xall> Is it "better" to use accessors rather than class variables? Or at least in this case: https://gist.github.com/anonymous/6a5782c1eee9b5ee694b5885e7764cb5
whomp has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 260 seconds]
creat has quit [Ping timeout: 250 seconds]
ace05 has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 265 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
Capela has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
jenrzzz has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: SteenJobs]
hahuang61 has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
tubuliferous_ has joined #ruby
djbkd has joined #ruby
alem0lars has quit [Ping timeout: 245 seconds]
Klumben has quit [Ping timeout: 260 seconds]
pokalyis has quit [Read error: Connection reset by peer]
17WAAHHPF has joined #ruby
7YUAAI56R has joined #ruby
zukin has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
UserJosh has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
ziarkaen_ has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 256 seconds]
zukin has joined #ruby
Rickmasta has joined #ruby
Klumben has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
postmodern has quit [Quit: Leaving]
7YUAAI56R has quit [Quit: Leaving]
PaulePanter has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
UserJosh has quit [Quit: Leaving]
ace05 has joined #ruby
optiz0r has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
alem0lars has joined #ruby
ace05 has quit [Ping timeout: 265 seconds]
pwnd_nsfw has quit [Quit: Leaving]
charliesome has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
PaulCape_ has quit [Quit: .]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jackjackdripper1 has quit [Quit: Leaving.]
zukin has quit [Quit: leaving]
PaulCapestany has joined #ruby
hutch34 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
palms has quit [Ping timeout: 260 seconds]
Cohedrin has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hutch34 has quit [Ping timeout: 268 seconds]
BTRRY is now known as BTRE
cyphase has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: SteenJobs]
Cohedrin has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
konsolebox has quit [Quit: Leaving]
cyphase has joined #ruby
Madplatypus has joined #ruby
evidex has joined #ruby
17WAAHHPF has quit [Quit: Leaving]
Capela has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
nchambers^ has joined #ruby
nchambers has quit [Disconnected by services]
nchambers^ is now known as nchambers
evidex has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
flashpoint9 has joined #ruby
arnonhongklay has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Capela has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
arnonhongklay has quit [Client Quit]
Cohedrin has joined #ruby
ICantCook has quit [Quit: bye]
hahuang61 has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
Channel6 has quit [Quit: Leaving]
renderful has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
voltorb has quit [Ping timeout: 268 seconds]
tyang has quit [Ping timeout: 250 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 256 seconds]
yeticry has quit [Read error: Connection reset by peer]
ziarkaen_ has quit [Ping timeout: 244 seconds]
ziarkaen has quit [Ping timeout: 244 seconds]
flashpoint9 has quit [Remote host closed the connection]
yeticry has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
mr_blue has joined #ruby
chadhs has quit [Quit: Textual IRC Client: www.textualapp.com]
xall has quit [Ping timeout: 260 seconds]
_djbkd has joined #ruby
dsuper7 has quit [Quit: Catch you on the flip side....]
gix has quit [Ping timeout: 250 seconds]
_djbkd has quit [Ping timeout: 256 seconds]
tubuliferous_ has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
_sfiguser has quit [Ping timeout: 244 seconds]
ngrin has joined #ruby
gix has joined #ruby
unreal has quit [Ping timeout: 260 seconds]
chadwtaylor has quit [Ping timeout: 250 seconds]
arescorpio has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
shmuli has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
ponga has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
_sfiguser has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
unreal has joined #ruby
nankyokusei has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
xecutioner has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 252 seconds]
harfangk has joined #ruby
User458764 has joined #ruby
matp_ has joined #ruby
aupadhye has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
shmuli has quit [Remote host closed the connection]
aryaching has joined #ruby
matp has quit [Ping timeout: 250 seconds]
Capela has joined #ruby
phredus_ has joined #ruby
xall has joined #ruby
dar123 has joined #ruby
ag4ve_ has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
<mr_blue> quit
mr_blue has quit [Quit: leaving]
xutt has joined #ruby
hahuang61 has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nchambers> \o/ he did it
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
CloCkWeRX has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
phredus_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 256 seconds]
jcao219 has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ag4ve_ has quit [Ping timeout: 268 seconds]
brianpWins has quit [Quit: brianpWins]
charliesome has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
ace05 has joined #ruby
aryaching has joined #ruby
shmuli has joined #ruby
ace05 has quit [Ping timeout: 260 seconds]
minimalism has quit [Quit: minimalism]
saneax has joined #ruby
_djbkd has joined #ruby
shmuli has quit [Remote host closed the connection]
mBailey_j has joined #ruby
_djbkd has quit [Ping timeout: 268 seconds]
enterprisey has quit [Remote host closed the connection]
Rodya_ has joined #ruby
hutch34 has joined #ruby
UserJosh has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
lacour has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 260 seconds]
ngrin has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nchambers has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 260 seconds]
evidex has joined #ruby
ur5us has joined #ruby
jenrzzz has joined #ruby
Capela has joined #ruby
xecutioner has quit [Remote host closed the connection]
xecutioner has joined #ruby
evidex has quit [Ping timeout: 250 seconds]
spt0 has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
Capela has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Quit: Leaving.]
xecutioner has quit [Ping timeout: 252 seconds]
coyo has quit [Ping timeout: 250 seconds]
xutt has quit [Quit: Leaving]
mark_66 has joined #ruby
DoubleMalt has joined #ruby
Ishido has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
_djbkd has joined #ruby
yardenbar has joined #ruby
_djbkd has quit [Remote host closed the connection]
muelleme has joined #ruby
ziarkaen_ has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Ping timeout: 260 seconds]
kn330 has joined #ruby
djbkd has joined #ruby
xecutioner has joined #ruby
nickmm has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
masterasia has joined #ruby
<masterasia> I edited a ruby gem - what's the best way to restore it
<masterasia> (I added breakpoints)
<masterasia> Just delete it
<masterasia> ?
mluts has joined #ruby
cgfbee has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xecutioner has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
nickmm has joined #ruby
r3vDev has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
cgfbee has joined #ruby
conta has joined #ruby
Capela has joined #ruby
pawnbox has joined #ruby
Rickmasta has joined #ruby
dminuoso_ has joined #ruby
<havenwood> masterasia: gem pristine gem-name-here
<havenwood> see: gem help pristine
Rickmasta has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
ace05 has joined #ruby
pawnbox has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 268 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
nankyokusei has joined #ruby
jcao219 has quit [Quit: ByrdIRC]
symm- has quit [Quit: Leaving...]
jcao219 has joined #ruby
<gizmore> i tried php composer this week... suprise it's really working and fast Oo
<gizmore> i bet they don't use TLS yet, though :P
Devalo has quit [Ping timeout: 268 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
User458764 has joined #ruby
yardenbar has joined #ruby
dminuoso_ has quit [Ping timeout: 260 seconds]
muelleme has quit [Ping timeout: 260 seconds]
r3vDev has quit [Quit: Leaving.]
JoshS has joined #ruby
r3vDev has joined #ruby
mluts has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
last_staff has joined #ruby
UserJosh has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
ta_ has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
hahuang61 has joined #ruby
tubuliferous_ has joined #ruby
dminuoso_ has joined #ruby
zotherstupidguy has joined #ruby
Capela has quit [Remote host closed the connection]
ace05 has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
ace05 has joined #ruby
solocshaw has joined #ruby
conta has quit [Quit: conta]
hero has joined #ruby
teclator has joined #ruby
tubuliferous_ has quit [Ping timeout: 268 seconds]
evidex has joined #ruby
Darmani has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
gagrio has joined #ruby
gagrio is now known as gagrio-wfh
ace05 has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 252 seconds]
conta has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
whiteline has quit [Ping timeout: 246 seconds]
Madplatypus has joined #ruby
hfp_work has joined #ruby
pagios has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
AlexRussia has joined #ruby
hfp has joined #ruby
ur5us has joined #ruby
amclain has quit [Quit: Leaving]
terens has quit [Ping timeout: 260 seconds]
r3vDev has quit [Quit: Leaving.]
brujoand has joined #ruby
r3vDev1 has joined #ruby
AlphaAtom has joined #ruby
wugy has joined #ruby
aganov has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
Pupeno has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
grh has joined #ruby
kn330 has quit [Quit: No Ping reply in 180 seconds.]
kn330 has joined #ruby
palms has joined #ruby
User458764 has joined #ruby
radic has quit [Ping timeout: 250 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.6]
hutch34 has joined #ruby
jackjackdripper has joined #ruby
dminuoso_ has joined #ruby
djbkd has quit [Remote host closed the connection]
tyang has joined #ruby
djbkd has joined #ruby
kn330 has quit [Ping timeout: 244 seconds]
hutch34 has quit [Ping timeout: 265 seconds]
djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
palms has quit [Ping timeout: 260 seconds]
zotherstupidguy has joined #ruby
ace05 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
pagios has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
ace05 has quit [Ping timeout: 250 seconds]
AlphaAtom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troulouliou_div2 has joined #ruby
astrobunny has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
claudiuinberlin has joined #ruby
mluts has joined #ruby
jshjsh has joined #ruby
Bish has quit [Ping timeout: 256 seconds]
JoshS has quit [Ping timeout: 244 seconds]
hero has quit [Ping timeout: 250 seconds]
r3vDev1 has quit [Ping timeout: 265 seconds]
hahuang61 has joined #ruby
startupality has joined #ruby
Bish has joined #ruby
DoubleMalt has joined #ruby
renderful has joined #ruby
tubuliferous_ has joined #ruby
xecutioner has joined #ruby
vondruch has joined #ruby
Capela has joined #ruby
andikr has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
startupality has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
PaulePanter has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
ziarkaen_ has quit [Ping timeout: 244 seconds]
ziarkaen has quit [Ping timeout: 250 seconds]
startupality has quit [Client Quit]
ta_ has joined #ruby
flying has joined #ruby
brujoand has left #ruby [#ruby]
al2o3-cr has joined #ruby
astrobunny has joined #ruby
chouhoulis has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.6]
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
lenwood has joined #ruby
startupality has joined #ruby
yardenbar has quit [Ping timeout: 256 seconds]
djbkd has quit [Ping timeout: 250 seconds]
Chair has joined #ruby
ace05 has joined #ruby
gingray has joined #ruby
evidex has quit [Ping timeout: 260 seconds]
UserJosh has joined #ruby
jshjsh has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
tubuliferous_ has quit [Ping timeout: 250 seconds]
startupality has joined #ruby
charliesome has joined #ruby
chouhoulis has joined #ruby
nettoweb has joined #ruby
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
nankyokusei has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
charliesome has quit [Client Quit]
mikecmpbll has joined #ruby
ace05 has quit [Remote host closed the connection]
lxsameer has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ace05 has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
jsrn_ has joined #ruby
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
charliesome has joined #ruby
ziarkaen has joined #ruby
<zotherstupidguy> is bundler a fork from thor? bundler git log shows common SHAs
kith has quit [Quit: kith]
vjacob has joined #ruby
<zotherstupidguy> whats the story?
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Ping timeout: 260 seconds]
ziarkaen_ has joined #ruby
ace05 has quit [Remote host closed the connection]
Kendos-Kenlen has joined #ruby
kith has joined #ruby
E7F3RN4 has joined #ruby
E7F3RN4 has quit [Client Quit]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
vjacob has left #ruby ["Leaving"]
AlexRussia has quit [Ping timeout: 265 seconds]
<toretore> zotherstupidguy: it is vendored into the bundler repo: https://github.com/bundler/bundler/tree/master/lib/bundler/vendor/thor/lib
radic has joined #ruby
hahuang61 has joined #ruby
<zotherstupidguy> toretore i see
<zotherstupidguy> toretore thanks
mim1k|work has quit [Read error: Connection reset by peer]
hero has joined #ruby
Capela has joined #ruby
CloCkWeRX has joined #ruby
emilkarl has joined #ruby
araujo has joined #ruby
AlexRussia has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
UserJosh has quit [Ping timeout: 260 seconds]
jaruga___ has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
charliesome has joined #ruby
Rumbles_ has joined #ruby
tomphp has joined #ruby
startupality has joined #ruby
marr has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
<Rumbles_> hi, I'm trying to set up duc on ubuntu, but building from source it's after tokyocabinet, which I installed using apt (tokyocabinet-bin) but for whatever reason that didn't actually install the binaries (no idea??) but it looks like it's available to install using gem.... but when I tried to install it I get this: http://pastebin.com/9i9sbKEY
<ruby[bot]> Rumbles_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/238cbb499fd5298743e2ce7c13afc920
<ruby[bot]> Rumbles_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
gingray has quit [Ping timeout: 252 seconds]
<Rumbles_> it looks like I'm stuck in a loop, trying to install tokyocabinet fails because "/usr/bin/ld: cannot find -ltokyocabinet"
<Rumbles_> can anyone tell me what I'm doing wrong?
<hanmac> Rumbles_: the gem tokyocabinet only connects (binds) the C library to ruby, it does not contrain the C library itself
<Rumbles_> oh right :/
<hanmac> Rumbles_: you need the dev package for tokyocabinet
<hanmac> Rumbles_: a check says its "libtokyocabinet-dev"
jenrzzz has quit [Ping timeout: 268 seconds]
hightower3 has joined #ruby
ricer2 has quit [Quit: Caught SystemExit exception.]
miguelfernandes has joined #ruby
mim1k|work has joined #ruby
<Rumbles_> yey, that's it, thanks hanmac
startupality has quit [Quit: startupality]
<Rumbles_> I new I was doing something stupid :)
frmendes has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
User458764 has joined #ruby
<hanmac> Rumbles_: hm the gem chould have been a bit better with checking if everything it needs is installed, but good to know for you for the next time if you see an error/ gem problem like that
pandaant has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
Beams has joined #ruby
e1z0_ has joined #ruby
tau has joined #ruby
ace05 has joined #ruby
bluOxigen has joined #ruby
tubuliferous_ has joined #ruby
tristanp has joined #ruby
startupality has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
tomphp_ has joined #ruby
whiteline has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
Pupeno has quit [Quit: Leaving...]
tomphp has quit [Ping timeout: 250 seconds]
frankiee_ has joined #ruby
ferr has joined #ruby
xall has quit [Ping timeout: 260 seconds]
vjacob has joined #ruby
lenwood has quit [Remote host closed the connection]
lenwood has joined #ruby
tyang has quit [Ping timeout: 260 seconds]
vjacob has left #ruby [#ruby]
Rickmasta has joined #ruby
ocbtec has joined #ruby
spt0 has joined #ruby
Rickmasta has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
ldnunes has joined #ruby
Guest43 has joined #ruby
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
Capela has joined #ruby
tubuliferous_ has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
djbkd has joined #ruby
ace05 has quit [Remote host closed the connection]
Capela has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
ace05 has joined #ruby
gingray has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
ricer2 has joined #ruby
nickmm has quit [Ping timeout: 268 seconds]
CloCkWeRX has quit [Remote host closed the connection]
rfoust__ has joined #ruby
manjaro-kde5 has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
gmci has quit [Ping timeout: 260 seconds]
podman has quit [Ping timeout: 260 seconds]
c355e3b has quit [Ping timeout: 260 seconds]
NeverTired has quit [Ping timeout: 260 seconds]
avdi has quit [Ping timeout: 260 seconds]
HashNuke has quit [Ping timeout: 260 seconds]
mrsolo has quit [Ping timeout: 260 seconds]
shelling__ has quit [Ping timeout: 260 seconds]
davidmichaelkarr has quit [Ping timeout: 260 seconds]
wsmoak has quit [Ping timeout: 260 seconds]
Hobbyboy has quit [Ping timeout: 260 seconds]
gingray has quit [Ping timeout: 244 seconds]
lipoqil has quit [Ping timeout: 260 seconds]
dmnd has quit [Ping timeout: 260 seconds]
AndyWojo has quit [Ping timeout: 260 seconds]
heyimwill has quit [Ping timeout: 260 seconds]
bweston92 has quit [Ping timeout: 260 seconds]
<kke> so, naming things.. i'm writing a thing that deals with options. one of the parts is a thing that is used to get a value for the option. for example the value can come from an interactive prompt, environment variable, a default value or somewhere else. what should these "value obtainers" be called?
manveru has quit [Ping timeout: 260 seconds]
rann has quit [Ping timeout: 260 seconds]
AdamMeghji__ has quit [Ping timeout: 260 seconds]
the-eat-scout has quit [Ping timeout: 260 seconds]
vedu has quit [Ping timeout: 260 seconds]
bihi has quit [Ping timeout: 260 seconds]
im0b has quit [Ping timeout: 260 seconds]
zero7 has quit [Ping timeout: 260 seconds]
techntoke__ has quit [Ping timeout: 260 seconds]
caw has quit [Ping timeout: 260 seconds]
Heero has quit [Ping timeout: 260 seconds]
meinside has quit [Ping timeout: 260 seconds]
montyboy has quit [Ping timeout: 260 seconds]
jmcc____________ has quit [Ping timeout: 260 seconds]
troter__________ has quit [Ping timeout: 260 seconds]
machty has quit [Ping timeout: 260 seconds]
mitsuhiko has quit [Ping timeout: 260 seconds]
hayden__ has quit [Ping timeout: 260 seconds]
kapowaz has quit [Ping timeout: 260 seconds]
Iacobus_ has quit [Ping timeout: 260 seconds]
pizzaops has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has quit [Ping timeout: 260 seconds]
jlyndon_ has quit [Ping timeout: 260 seconds]
jcp__ has quit [Ping timeout: 260 seconds]
cb has quit [Ping timeout: 260 seconds]
vcoinminer has quit [Ping timeout: 260 seconds]
Tony-St4rk has quit [Ping timeout: 260 seconds]
digitalfiz has quit [Ping timeout: 260 seconds]
mjc_ has quit [Ping timeout: 260 seconds]
twodayslate has quit [Ping timeout: 260 seconds]
dmarr has quit [Ping timeout: 260 seconds]
joaomdmoura__ has quit [Ping timeout: 260 seconds]
[spoiler] has quit [Ping timeout: 260 seconds]
soahccc has quit [Ping timeout: 260 seconds]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
nowhereman has joined #ruby
lele has quit [Ping timeout: 260 seconds]
dellavg has quit [Ping timeout: 260 seconds]
LyndsySimon has quit [Ping timeout: 260 seconds]
sonOfRa_ has joined #ruby
Rush has quit [Ping timeout: 260 seconds]
f0rpaxe has quit [Ping timeout: 260 seconds]
sonOfRa has quit [Ping timeout: 260 seconds]
darix has quit [Ping timeout: 260 seconds]
canton7 has quit [Ping timeout: 260 seconds]
heftig has quit [Ping timeout: 260 seconds]
contradictioned has quit [Ping timeout: 260 seconds]
krasnus has quit [Ping timeout: 260 seconds]
CustosLimen has quit [Ping timeout: 260 seconds]
SuperTux88 has quit [Ping timeout: 260 seconds]
ohcibi_ has joined #ruby
contradictioned has joined #ruby
heftig has joined #ruby
sonOfRa_ is now known as sonOfRa
nowhere_man has quit [Ping timeout: 260 seconds]
rfoust_ has quit [Ping timeout: 260 seconds]
ohcibi has quit [Ping timeout: 260 seconds]
davix[matrix] has quit [Ping timeout: 260 seconds]
G has quit [Ping timeout: 260 seconds]
RushPL has quit [Ping timeout: 260 seconds]
<kke> like option.resolvers << EnvironmentResolver.new(env_variable_name)
Rush has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
avdi has joined #ruby
NeverTired has joined #ruby
RushPL has joined #ruby
wsmoak has joined #ruby
lipoqil has joined #ruby
davidmichaelkarr has joined #ruby
podman has joined #ruby
AndyWojo has joined #ruby
mrsolo has joined #ruby
shelling__ has joined #ruby
hayden__ has joined #ruby
rann has joined #ruby
manveru has joined #ruby
bweston92 has joined #ruby
c355e3b has joined #ruby
darix has joined #ruby
the-eat-scout has joined #ruby
ace05 has quit [Remote host closed the connection]
HashNuke has joined #ruby
troter__________ has joined #ruby
joaomdmoura__ has joined #ruby
dmnd has joined #ruby
G has joined #ruby
ghostlight has quit [Ping timeout: 250 seconds]
Jameser has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
Kendos-Kenlen has joined #ruby
mitsuhiko has joined #ruby
twodayslate has joined #ruby
kapowaz has joined #ruby
im0b has joined #ruby
Heero has joined #ruby
meinside has joined #ruby
digitalfiz has joined #ruby
pizzaops has joined #ruby
jcp__ has joined #ruby
vcoinminer has joined #ruby
jlyndon_ has joined #ruby
dnicole has joined #ruby
mjc_ has joined #ruby
Iacobus_ has joined #ruby
Tony-St4rk has joined #ruby
LyndsySimon has joined #ruby
techntoke__ has joined #ruby
ELLIOTTCABLE has joined #ruby
machty has joined #ruby
jmcc____________ has joined #ruby
AdamMeghji__ has joined #ruby
caw has joined #ruby
zero7 has joined #ruby
f0rpaxe has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
lele has joined #ruby
[spoiler] has joined #ruby
cb has joined #ruby
dmarr has joined #ruby
startupality has joined #ruby
ace05 has joined #ruby
canton7 has joined #ruby
bihi has joined #ruby
jdesbois has joined #ruby
dellavg has joined #ruby
Burgestrand has joined #ruby
CustosLimen has joined #ruby
<jdesbois> Morning all (or afternoon/evening depending on where you are)
ace05 has quit [Remote host closed the connection]
dnicole has quit [Ping timeout: 260 seconds]
<jdesbois> I was unaware of that, thanks
<jdesbois> good (UGT)
astrobunny has quit [Ping timeout: 250 seconds]
ferr has quit [Quit: WeeChat 1.5]
biberu has joined #ruby
nekcode has joined #ruby
User458764 has joined #ruby
ghostlight has joined #ruby
montyboy has joined #ruby
davix[matrix] has joined #ruby
workmad3 has joined #ruby
JeanCarloMachado has joined #ruby
gingray has joined #ruby
gmci has joined #ruby
tristanp has joined #ruby
ferr has joined #ruby
ace05 has joined #ruby
heyimwill has joined #ruby
nankyokusei has joined #ruby
byte512 has joined #ruby
cdg has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
krasnus has joined #ruby
startupality has quit [Quit: startupality]
nankyokusei has quit [Ping timeout: 250 seconds]
Immune has quit [Read error: Connection reset by peer]
xecutioner has quit [Remote host closed the connection]
SesMan has joined #ruby
hero has quit [Ping timeout: 260 seconds]
ziarkaen_ has quit [Quit: leaving]
E7F3RN4 has joined #ruby
ziarkaen_ has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny56 has quit [Ping timeout: 246 seconds]
fullstack has quit [Ping timeout: 268 seconds]
johnny56 has joined #ruby
tubuliferous_ has joined #ruby
nekcode has quit [Quit: nekcode]
<oddmunds> what would you call a constructor(?) pattern like this? user = User.new.with_name("Mr User").with_age(34).with_alignment(:neutral)
E7F3RN4 has quit [Ping timeout: 260 seconds]
cgfbee has quit [Remote host closed the connection]
<oddmunds> (i think i have only encountered it in java, but you are a knowledgable bunch that might know what this is called)
GodFather has joined #ruby
ace05 has quit [Remote host closed the connection]
cdg_ has joined #ruby
mluts has quit [Remote host closed the connection]
<apeiros> I would not call it a constructor pattern at all. you just have a couple of "creatively" named setters.
<apeiros> and honestly, I don't see an advantage over, say, User.with(name: "Mr User", age: …)
<apeiros> (or just plain old User.new(…))
<apeiros> and/or if you want to have it on the instance: User#update(name: …)
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
cdg has quit [Ping timeout: 250 seconds]
<dminuoso_> Also I think it's a silly attempt at metaprogramming.
sparch has joined #ruby
<dminuoso_> If you require your code to read naturally to make sense, learn the language.
Hobbyboy has joined #ruby
soahccc has joined #ruby
xecution_ has joined #ruby
bob434 has joined #ruby
<oddmunds> thanks. i translated this from java, where it might make more sense given lack of named parameters and less flexible syntax in general.
<oddmunds> and i found the name, "Fluent interface" i believe fits what i was looking for. http://martinfowler.com/bliki/FluentInterface.html
SuperTux88 has joined #ruby
grh has quit [Ping timeout: 260 seconds]
<dminuoso_> oddmunds: I think the more generic term is "domain specific language"
grh has joined #ruby
jdesbois has quit [Quit: jdesbois]
vedu has joined #ruby
Ishido has quit [Remote host closed the connection]
SteenJobs has joined #ruby
ace05 has joined #ruby
<oddmunds> maaaybe. i am sorry if the question was off topic, since i was mostly interested in the java bit of it. where i think it would be a strech to call it a DSL. but that might be because i am used to the possibilities of dsl in ruby.
<hanmac> hm yeah i wouldn't call that Fluent stuff DSL too ... imo a DSL would look better than that
supergeek has joined #ruby
xall has joined #ruby
<dminuoso_> mmm, oh
<jokke> >> Integer === Integer
nickmm has joined #ruby
<ruby[bot]> jokke: # => false (https://eval.in/671866)
<jokke> why?
<jokke> makes absolutely no sense
<jokke> can't make a case over a class
<jokke> do i really have to write an if else cascade to check if a class is one or another?
Ishido has joined #ruby
<dminuoso_> jokke: Because === is the case equality operator.
<apeiros> "I don't understand" != "makes no sense"
TomyWork has quit [Ping timeout: 256 seconds]
<dminuoso_> jokke: So a === b is the operator used for: case b when a then puts "foo"; end
<apeiros> why? because Integer is not an instance of Integer. that's what Class#=== tests.
TomyWork has joined #ruby
<apeiros> or Module#=== even.
jdesbois has joined #ruby
<jokke> mh
<jokke> so if else cascade it is
xecution_ has quit [Ping timeout: 244 seconds]
xecutioner has joined #ruby
Beams has quit [Quit: .]
bob434 has quit [Quit: This computer has gone to sleep]
tubuliferous_ has quit [Ping timeout: 250 seconds]
Capela has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xall_ has joined #ruby
gingray has quit [Ping timeout: 250 seconds]
supergeek has quit [Quit: WeeChat 1.5]
Bish has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
E7F3RN4 has joined #ruby
hutch34 has joined #ruby
Bish has joined #ruby
blackbombay has joined #ruby
synthroid has joined #ruby
nekcode has joined #ruby
xall_ has quit [Ping timeout: 252 seconds]
hutch34 has quit [Ping timeout: 252 seconds]
grh has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
GinoManWorks has joined #ruby
rodfersou is now known as rodfersou|afk
nadir has joined #ruby
Beams has joined #ruby
bob434 has joined #ruby
ziarkaen_ has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
ziarkaen_ has joined #ruby
nisstyre has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
xecutioner has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
grh has joined #ruby
cgfbee has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
xecutioner has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
xecutioner has quit [Ping timeout: 268 seconds]
renderful has joined #ruby
hahuang61 has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
fmcgeough has joined #ruby
tvw has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
nopolitica has quit [Quit: WeeChat 1.3]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Remote host closed the connection]
andikr has quit [Ping timeout: 256 seconds]
claudiuinberlin has joined #ruby
e1z0_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andikr has joined #ruby
xecutioner has joined #ruby
nchambers has joined #ruby
nchambers has quit [Client Quit]
Burgestrand has joined #ruby
hogetaro has joined #ruby
GodFather has quit [Ping timeout: 268 seconds]
gizless has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
claudiuinberlin has quit [Ping timeout: 265 seconds]
sdothum has joined #ruby
mwlang has quit [Quit: mwlang]
jaguarmagenta has joined #ruby
SteenJobs has joined #ruby
dnicole has joined #ruby
Kendos-Kenlen has quit [Ping timeout: 252 seconds]
jaguarmagenta has quit [Ping timeout: 268 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
_sfiguser has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
interpolate has joined #ruby
dcluna has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
solocshaw has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
aupadhye has quit [Ping timeout: 252 seconds]
DTZUZU has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
dnicole has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
User458764 has joined #ruby
_sfiguser has joined #ruby
Jameser has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
Rodya_ has joined #ruby
nankyokusei has joined #ruby
Kendos-Kenlen has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 268 seconds]
frankiee_ has quit [Ping timeout: 268 seconds]
jcao219 has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
tyang has joined #ruby
tyang has quit [Client Quit]
Jameser has quit [Max SendQ exceeded]
ramortegui has joined #ruby
zotherst1 has joined #ruby
Jameser has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
ziarkaen_ has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 256 seconds]
millerti has joined #ruby
tyang has joined #ruby
bmurt has joined #ruby
frankiee_ has joined #ruby
hutch34 has joined #ruby
hinbody_ has joined #ruby
hinbody_ has quit [Client Quit]
aegis3121 has joined #ruby
hinbody_ has joined #ruby
hinbody has quit [Disconnected by services]
hinbody_ has quit [Client Quit]
hinbody has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus70 is now known as dionysus69
dar123 has joined #ruby
elementaru has joined #ruby
xecutioner has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 265 seconds]
interpolate has quit [Quit: interpolate]
Jameser_ has joined #ruby
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
Jameser has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Read error: Connection reset by peer]
SteenJobs has joined #ruby
jaiks has quit [Ping timeout: 260 seconds]
jdesbois has quit [Ping timeout: 265 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ace05 has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
DLSteve has joined #ruby
gnufied has joined #ruby
last_staff has quit [Quit: last_staff]
jaiks has joined #ruby
ace05 has quit [Remote host closed the connection]
creat has joined #ruby
ace05 has joined #ruby
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
Devalo has joined #ruby
ChiefAlexander has joined #ruby
dminuoso_ has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
claudiuinberlin has joined #ruby
tristanp has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
ace05 has quit [Remote host closed the connection]
tomphp_ has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
ace05 has joined #ruby
ace05 has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
tvw has joined #ruby
igniting has quit [Ping timeout: 252 seconds]
dminuoso_ has joined #ruby
boombox_ has joined #ruby
Rumbles_ has quit [Quit: Leaving]
anisha has quit [Quit: This computer has gone to sleep]
Rumbles_ has joined #ruby
ag4ve_ has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
josealobato has joined #ruby
anisha has joined #ruby
saneax is now known as saneax-_-|AFK
Rumbles_ is now known as Rumbles
ace05 has joined #ruby
shinnya has joined #ruby
E7F3RN4 has quit [Quit: WeeChat 1.5]
ace05 has quit [Remote host closed the connection]
ziarkaen_ has quit [Ping timeout: 265 seconds]
ziarkaen has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
minimalism has joined #ruby
Mon_Ouie has joined #ruby
JazzyVariable227 has quit [Ping timeout: 250 seconds]
boombox_ has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 250 seconds]
frankiee_ has quit [Ping timeout: 250 seconds]
ace05 has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
JazzyVariable227 has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
Rickmasta has quit [Ping timeout: 265 seconds]
gingray has joined #ruby
mrwn has joined #ruby
SteenJobs has quit [Read error: Connection reset by peer]
igniting has joined #ruby
SteenJobs has joined #ruby
aegis3121 has quit [Ping timeout: 250 seconds]
tubuliferous_ has joined #ruby
aegis3121 has joined #ruby
hahuang61 has joined #ruby
Beams_ has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
interpolate has joined #ruby
manjaro-kde5 has quit [Ping timeout: 260 seconds]
dminuoso_ has quit [Remote host closed the connection]
weemsledeux has joined #ruby
Beams has quit [Ping timeout: 256 seconds]
hero has joined #ruby
Beams has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeanCarloMachado has quit [Quit: Lost terminal]
hahuang61 has quit [Ping timeout: 260 seconds]
ace05 has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
ace05 has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
Beams_ has quit [Ping timeout: 250 seconds]
igniting has quit [Ping timeout: 250 seconds]
JesseH has quit [Remote host closed the connection]
cpruitt has joined #ruby
ziarkaen has quit [Disconnected by services]
ziarkaen_ has quit [Client Quit]
ziarkaen has joined #ruby
spt0 has quit [Remote host closed the connection]
ace05 has quit [Ping timeout: 244 seconds]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
interpolate has quit [Quit: interpolate]
spt0 has joined #ruby
interpolate has joined #ruby
spt0 has quit [Remote host closed the connection]
bmurt has joined #ruby
spt0 has joined #ruby
nekcode has quit [Quit: nekcode]
weemsledeux has joined #ruby
voltorb has joined #ruby
spt0 has quit [Client Quit]
mrwn has quit [Ping timeout: 260 seconds]
spt0 has joined #ruby
mixdev23 has joined #ruby
mixdev23 has quit [Client Quit]
mixdev23 has joined #ruby
mixdev23 has quit [Max SendQ exceeded]
mixdev23 has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smlocal has joined #ruby
igniting has joined #ruby
smlocal has quit [Remote host closed the connection]
tau has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has joined #ruby
bluOxigen has joined #ruby
voltorb has quit [Ping timeout: 265 seconds]
Rodya_ has quit [Remote host closed the connection]
mark_66 has left #ruby ["PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :adams.freenode.net"]
tubuliferous_ has quit [Ping timeout: 250 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
manjaro-kde5 has joined #ruby
grh has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
lifted has quit [Ping timeout: 244 seconds]
lifted_ has quit [Ping timeout: 250 seconds]
shinnya has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
E7F3RN4 has joined #ruby
cdg has joined #ruby
jhack has joined #ruby
jcao219 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
tomphp has joined #ruby
ElFerna has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
E7F3RN4 has quit [Ping timeout: 260 seconds]
dcluna has quit [Ping timeout: 260 seconds]
tercenya_ has joined #ruby
nickmm has quit [Ping timeout: 260 seconds]
tercenya has quit [Ping timeout: 244 seconds]
polysics has joined #ruby
sepp2k has joined #ruby
jcao219 has quit [Ping timeout: 256 seconds]
weemsledeux has joined #ruby
nickmm has joined #ruby
ace05 has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
voltorb has joined #ruby
pawnbox has joined #ruby
Capela has quit [Remote host closed the connection]
merely_oolong has joined #ruby
tubuliferous_ has joined #ruby
G has quit [Ping timeout: 260 seconds]
G has joined #ruby
dage has joined #ruby
tercenya_ has quit [Remote host closed the connection]
anuxivm has joined #ruby
tercenya has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zacts has joined #ruby
synthroid has quit [Remote host closed the connection]
XV8 has joined #ruby
<croberts> hi im using rubocop and its saying Inconsistent indentation detected. here is my code, maybe im missing something
Guest43 has quit [Quit: Textual IRC Client: www.textualapp.com]
<croberts> 62:2
<aegis3121> it tells you line 3, right?
<croberts> yeah
<aegis3121> There's a leading space
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aegis3121> Or, rather, it should be indented two spaces
<aegis3121> As should the entirety of its block
josealobato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<croberts> thank you so much
<croberts> ah
<aegis3121> np
hahuang61 has joined #ruby
Rodya_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb> croberts, you can just do auto-correction and then git diff to see what was wrong according to rubocop
sepp2k has quit [Read error: Connection reset by peer]
ferr has quit [Quit: WeeChat 1.5]
<croberts> Papierkorb: oh nice, i will check that out next time :)
bmurt has joined #ruby
m1911 has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
nekcode has joined #ruby
Capela has joined #ruby
pandaant has quit [Remote host closed the connection]
mBailey_j has left #ruby ["WeeChat 1.6"]
tvw has joined #ruby
TomyWork has quit [Remote host closed the connection]
synthroid has joined #ruby
m1911 has quit [Remote host closed the connection]
vuoto has joined #ruby
synthroi_ has joined #ruby
synthroid has quit [Remote host closed the connection]
hero has quit [Ping timeout: 268 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
synthroid has joined #ruby
chadwtaylor has joined #ruby
JoshS has joined #ruby
voltorb_ has joined #ruby
aegis3121 has quit [Ping timeout: 256 seconds]
synthroi_ has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 250 seconds]
voltorb has quit [Ping timeout: 260 seconds]
[Butch] has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
chadwtaylor has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
ElFerna has joined #ruby
merely_oolong has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nikivi has joined #ruby
otsugua has joined #ruby
<otsugua> hello
dcluna has joined #ruby
AlexJakeGreen has joined #ruby
amclain has joined #ruby
m1911 has joined #ruby
voltorb_ has quit [Read error: Connection reset by peer]
<otsugua> I ahve a quick question I am somewhat new to rspec but I remember a couple of years ago a friend of mine showed an rspec file that at the begining right after feature but before scenario I had a construct that was given(<symbol>){<string>} but when I tried to that I get an error
<otsugua> `method_missing': undefined method `given' for RSpec::ExampleGroups::InitialSetUpSteps:Class (NoMethodError)
hutch34 has quit [Ping timeout: 268 seconds]
m1911 has quit [Remote host closed the connection]
<Papierkorb> otsugua: You're looking for let(:foo){ ... }
cdg has quit [Remote host closed the connection]
jaruga___ has quit [Quit: jaruga___]
<ljarvis> otsugua: given was deprecated iirc
cdg has joined #ruby
voltorb has joined #ruby
jackjackdripper has joined #ruby
polishdub has joined #ruby
blackbombay_ has joined #ruby
aganov has quit [Remote host closed the connection]
manjaro-kde5 has quit [Ping timeout: 260 seconds]
spt0 has quit [Quit: Leaving]
spt0 has joined #ruby
<otsugua> aha.. yes I think Papierkorb
blackbombay has quit [Ping timeout: 256 seconds]
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<otsugua> so given was deprecated ... huh.. let worked.. thanks a lot
blackbombay has joined #ruby
flying has quit []
<ljarvis> they're not the same
TPug has joined #ruby
aeontech has joined #ruby
<ljarvis> but yeah, i think given was removed in v3, not sure
voltorb has quit [Ping timeout: 260 seconds]
<otsugua> what's the difference ?
miguelfernandes has quit [Quit: Leaving]
renderful has joined #ruby
shmuli has joined #ruby
blackbombay_ has quit [Ping timeout: 250 seconds]
blackbombay_ has joined #ruby
cdg has quit [Remote host closed the connection]
<ljarvis> i don't remember :)
<otsugua> :)
cdg has joined #ruby
matp_ is now known as matp
blackbombay has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
moei has quit [Quit: Leaving...]
blackbombay has joined #ruby
blackbombay__ has joined #ruby
moei has joined #ruby
rodfersou|afk is now known as rodfersou
jshjsh has joined #ruby
TomyLobo has joined #ruby
blackbombay_ has quit [Ping timeout: 260 seconds]
TomyLobo has quit [Read error: Connection reset by peer]
saneax-_-|AFK is now known as saneax
gingray has quit [Ping timeout: 265 seconds]
blackbombay has quit [Ping timeout: 260 seconds]
manjaro-kde5 has joined #ruby
nekcode has quit [Quit: nekcode]
JoshS has quit [Ping timeout: 250 seconds]
igniting has quit [Ping timeout: 252 seconds]
xall_ has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
gingray has joined #ruby
User458764 has joined #ruby
polysics has quit []
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
vuoto has quit [Ping timeout: 252 seconds]
<alexandernst> Can I "destructure" a string from a template? For example, if I have the template "%s__%s" and the final string "foo__bar", can I get ['foo', 'bar'] from that?
sepp2k has joined #ruby
gusrub_ has joined #ruby
charliesome has joined #ruby
eizua has joined #ruby
eizua has quit [Max SendQ exceeded]
ElFerna has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
<Papierkorb> alexandernst: String#match, String#split
eizua has joined #ruby
rodfersou has quit [Quit: leaving]
<alexandernst> Papierkorb: yes, I know about match and split. What I'm asking is if I can use, somehow, the template itself
<Papierkorb> No
<alexandernst> and let ruby figure out how/what to parse/extract/split
<Papierkorb> no, use regex's
flashpoint9 has quit [Ping timeout: 250 seconds]
hotpancakes has joined #ruby
araujo has quit [Read error: Connection timed out]
charliesome has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
GinoManWorks has quit [Quit: Leaving]
sepp2k has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
igniting has joined #ruby
Capela_ has joined #ruby
manjaro-kde5 has quit [Ping timeout: 250 seconds]
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aeontech has quit [Quit: aeontech]
<hanmac> hm i tried scanf but it didnt worked as i want it to :/
aeontech has joined #ruby
a1fa has quit [Ping timeout: 250 seconds]
aeontech has quit [Client Quit]
Capela has quit [Ping timeout: 268 seconds]
ag4ve_ has quit [Quit: -a- Connection Timed Out]
ag4ve_ has joined #ruby
ag4ve_ has quit [Max SendQ exceeded]
a1fa has joined #ruby
f4 has quit [Ping timeout: 250 seconds]
ag4ve_ has joined #ruby
jcao219 has joined #ruby
blackwind_123 has quit [Ping timeout: 244 seconds]
jhack has quit [Quit: jhack]
whathappens has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
edwinvdgraaf has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
senayar has quit []
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Read error: Connection reset by peer]
jhack has joined #ruby
gusrub_ has quit [Remote host closed the connection]
gagrio-wfh has quit [Quit: Leaving...]
<masterasia> Using rspec - how can I expect that an object receives a message when I don't have access to that object?
<masterasia> I want to expect that a user object found in a controller receives reset_password method
jhack has quit [Client Quit]
Capela has joined #ruby
<masterasia> Rspec provides allow_any_instance_of but it says that it is deprecated?
hotpancakes has joined #ruby
Capela_ has quit [Ping timeout: 260 seconds]
<Papierkorb> masterasia: use the expect_ variant
dviola has joined #ruby
jshjsh has quit [Ping timeout: 265 seconds]
bob434 has joined #ruby
blaxter has quit [Quit: foo]
skweek has joined #ruby
<masterasia> Papierkorb, This feature is sometimes useful when working with legacy code, though in general we
<masterasia> discourage its use for a number of reasons
<masterasia> ^just FUD?
<masterasia> what is the alternative to using this feature lol
SeepingN has joined #ruby
jhack has joined #ruby
<Papierkorb> masterasia: It's a last resort, but sometimes, the only resort I fear. Web MVC Controllers are one of these most of the times
jenrzzz has joined #ruby
<masterasia> Papierkorb, fair enough. thank you
<Papierkorb> I mean, you don't have the instance (it doesn't exist yet), can't get it (ruby can't do temporal future access yet I guess), and you can't really make the method giving it out return a mocked version either.
jhack has quit [Client Quit]
tdy has quit [Ping timeout: 252 seconds]
dnicole has joined #ruby
sepp2k has joined #ruby
conta has joined #ruby
DLSteve has joined #ruby
nikivi has quit [Quit: irc]
hotpancakes has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 260 seconds]
average has joined #ruby
<average> why is gem install so slow over here?
<average> it's always taken ages
<average> i never understood why
nankyokusei has joined #ruby
hotpancakes has joined #ruby
jsrn_ has quit [Quit: Leaving]
Kendos-Kenlen has quit [Quit: Konversation terminated!]
<Papierkorb> average: Define "slow"?
<Papierkorb> nodes NPM always takes ages for me, gem is reasonably fast for me
ramfjord has joined #ruby
<average> well.. i'm just running it and it's like taking forever idk
jenrzzz has quit [Ping timeout: 250 seconds]
<SeepingN> lots to do
<SeepingN> it should be showing you exactly what you're waiting for, no?
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
tomphp has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
otsugua has quit [Ping timeout: 260 seconds]
<havenwood> time gem install hola #>> gem install hola 0.86s user 0.32s system 50% cpu 2.335 total
<havenwood> ^ that's with fetching and documentation
SCHAAP137 has joined #ruby
frankiee_ has joined #ruby
cdg has quit [Remote host closed the connection]
<havenwood> average: What version of RubyGems? Have you tried with the --verbose flag? Which portion takes a long time? How long is long?
<Papierkorb> average: If you're installing "rails", most time is spent on parsing its documentation. If you don't need those, pass --no-ri to gem
sepp2k has quit [Quit: Leaving.]
Rumbles has quit [Ping timeout: 268 seconds]
<aegis3121> And nokogiri :(
tystr has joined #ruby
mattp_ has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 265 seconds]
AlexJakeGreen has quit [Remote host closed the connection]
mattp_ has joined #ruby
faces has quit []
nankyokusei has joined #ruby
<alexandernst> Is there a way I can mass-assign keys/values from a hash to the attributes of a class?
dnicole has quit [Ping timeout: 265 seconds]
igniting has quit [Ping timeout: 256 seconds]
<apeiros> alexandernst: no. unless that class provides a method to do so.
jhack has joined #ruby
<alexandernst> apeiros: this is actually RoR 5, maybe the framework provides some magic for that?
<alexandernst> (the class is a tableless model)
<Papierkorb> >> class A; def initialize(h); @foo, @bar = h.values_at(:foo, :bar); end; end; A.new(foo: 1, bar: 2) # alexandernst
<apeiros> that'd by why:
<ruby[bot]> Papierkorb: # => #<A:0x419897ac @foo=1, @bar=2> (https://eval.in/672013)
<apeiros> ?rails alexandernst
<ruby[bot]> alexandernst: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<blackbombay__> assign_attributes i think, i cant remember
<apeiros> alexandernst: and there too, it depends on the class
<apeiros> if it's a model, then there are a couple of methods
<alexandernst> apeiros: it's a model, yes
sparch has quit [Quit: Leaving]
djbkd has joined #ruby
Nahra has quit [Ping timeout: 252 seconds]
<apeiros> then ^, also see .attributes=, update, update_attributes, and their friends with bang.
gingray has quit [Ping timeout: 252 seconds]
aeontech has joined #ruby
<alexandernst> I think that should work, thank you :)
JeanCarloMachado has quit [Ping timeout: 250 seconds]
railssmith has quit [Ping timeout: 244 seconds]
machinewar has joined #ruby
aeontech has quit [Client Quit]
AlphaAtom has joined #ruby
tubuliferous_ has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sparch has joined #ruby
d3v has quit [Ping timeout: 260 seconds]
aeontech has joined #ruby
tvw has quit [Ping timeout: 265 seconds]
saneax is now known as saneax-_-|AFK
shmuli has quit [Read error: Connection reset by peer]
sneakers has joined #ruby
hinbody has quit [Quit: leaving]
Chair has quit [Ping timeout: 265 seconds]
<dn`> is there an easy way to format ‘74da3822d9e9’ to ’74:da:38:22 …’?
<apeiros> gsub
<apeiros> >> "74da3822d9e9".gsub(/../, '\0:')
<ruby[bot]> apeiros: # => "74:da:38:22:d9:e9:" (https://eval.in/672028)
igniting has joined #ruby
<apeiros> >> "74da3822d9e9".gsub(/..(?!\z)/, '\0:')
<ruby[bot]> apeiros: # => "74:da:38:22:d9:e9" (https://eval.in/672029)
DoubleMalt has quit [Ping timeout: 250 seconds]
<dn`> ah, thanks - yes should have thought about that
Capela has quit [Remote host closed the connection]
bhaak has joined #ruby
gizmore has joined #ruby
benlieb has joined #ruby
phantummm has joined #ruby
igniting has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
gizless has quit [Ping timeout: 260 seconds]
shmuli has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
salopardxl has joined #ruby
salopardxl has left #ruby [#ruby]
conta has quit [Ping timeout: 260 seconds]
gusrub_ has joined #ruby
aegis3121 has joined #ruby
Beams has quit [Quit: .]
anisha has joined #ruby
claudiuinberlin has quit []
brianpWins has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
gusrub_ has quit [Ping timeout: 265 seconds]
whomp has joined #ruby
maesitos has joined #ruby
ur5us has joined #ruby
<maesitos> Hello! Quick question
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
tvw has joined #ruby
whathappens has quit [Quit: Leaving...]
gusrub_ has joined #ruby
hutch34 has joined #ruby
<maesitos> Programming Ruby by Dave Thomas or The Ruby Programming Language by David Flanagan
Capela has joined #ruby
dar123 has joined #ruby
<maesitos> I'm attracted by the fact the later is also written by Yukihiro Matsumoto
whomp has quit [Client Quit]
<lupine> POODR by Santi Metz
<lupine> Sandi*
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
igniting has joined #ruby
mpwin has joined #ruby
<maesitos> lupine: looks nice
<maesitos> but I'm more interested in learning the ruby core before
<havenwood> maesitos: The Well-Grounded Rubyist is another
<havenwood> maesitos: The 2nd edition covers modern Ruby
troys has joined #ruby
<maesitos> havenwood: thanks!
synthroid has quit [Remote host closed the connection]
<maesitos> I'd like to change gears as I read a book from David Flanagan and it's more close to a reference book and very dense
<maesitos> I read "JS the definitive guide"
Chair has joined #ruby
Cohedrin has joined #ruby
railssmith has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
aeontech has quit [Quit: aeontech]
Cohedrin has quit [Client Quit]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
Chair has quit [Ping timeout: 265 seconds]
dar123 has joined #ruby
splud_ has joined #ruby
Cohedrin has joined #ruby
chadwtaylor has joined #ruby
josealobato has joined #ruby
sepp2k has joined #ruby
Cohedrin has quit [Max SendQ exceeded]
gusrub_ has quit []
anjen has joined #ruby
anjen has quit [Read error: Connection reset by peer]
gusrub_ has joined #ruby
nankyokusei has quit [Remote host closed the connection]
weemsledeux has joined #ruby
gusrub_ has quit [Read error: Connection reset by peer]
gusrub_ has joined #ruby
nankyokusei has joined #ruby
synthroid has joined #ruby
d5sx43 has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igniting has quit [Ping timeout: 252 seconds]
jcao219 has quit [Ping timeout: 256 seconds]
aeontech has joined #ruby
ElFerna has joined #ruby
armin has quit [Quit: relate to the matter as i drop the bomb]
rfoust__ is now known as rfoust
Fichtenstein has joined #ruby
hinbody has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
dar123 has joined #ruby
d5sx43 has quit []
gusrub_ has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 244 seconds]
gusrub_ has joined #ruby
armin has joined #ruby
dar123 has quit [Client Quit]
chadwtaylor has quit [Ping timeout: 260 seconds]
ur5us_ has joined #ruby
tercenya has quit [Remote host closed the connection]
dar123 has joined #ruby
tercenya has joined #ruby
RobertBirnie has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
gusrub_ has quit [Ping timeout: 250 seconds]
chadwtaylor has joined #ruby
dar123 has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 260 seconds]
ElFerna has quit [Quit: Textual IRC Client: www.textualapp.com]
E7F3RN4 has joined #ruby
Devalo has quit [Remote host closed the connection]
nankyokusei has joined #ruby
synthroi_ has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
chazu has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
synthroid has quit [Ping timeout: 252 seconds]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 250 seconds]
chazu has joined #ruby
alexherbo2 has quit [Ping timeout: 268 seconds]
frmendes has quit [Write error: Broken pipe]
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidt has joined #ruby
matled- has joined #ruby
matled has quit [Write error: Broken pipe]
vondruch has quit [Write error: Broken pipe]
tvw has quit [Write error: Broken pipe]
matled- is now known as matled
fmcgeough has quit [Quit: fmcgeough]
vondruch has joined #ruby
SCHAAP137 has left #ruby ["Leaving"]
claudiuinberlin has joined #ruby
Fridtjof has quit [Excess Flood]
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
Fridtjof has joined #ruby
tfitts has quit [Quit: Connection closed for inactivity]
gizless has joined #ruby
rfoust_ has joined #ruby
josealobato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has quit [Ping timeout: 244 seconds]
machinewar has quit []
d5sx43 has joined #ruby
shmuli_ has joined #ruby
ziarkaen has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
zofrex has joined #ruby
Capela has quit [Remote host closed the connection]
<zofrex> I am struggling to gracefully and concisely solve a problem involving parsing Json
jcao219 has joined #ruby
<zofrex> I'm communicating with an API that could best be summarised as... unfriendly and messy
<zofrex> my current code is full of nil checks, &., :dig, and so on
<average> uhm.. most languages have built-in json parsers these days..
shmuli has quit [Ping timeout: 250 seconds]
<zofrex> the issue is the structure
<average> is you want a json query language.. that's a different thing..
_whitelogger has quit [K-Lined]
_whitelogger has joined #ruby
jhack has joined #ruby
gusrub_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anjen has joined #ruby
whathappens has quit [Remote host closed the connection]
bmurt has joined #ruby
shmuli has quit []
DoubleMalt has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
firstdayonthejob has quit [Ping timeout: 244 seconds]
ur5us_ has quit [Read error: Connection reset by peer]
anjen has quit [Quit: anjen]
ur5us has joined #ruby
creat has joined #ruby
last_staff has joined #ruby
charliesome has joined #ruby
creat has quit [Client Quit]
firstdayonthejob has joined #ruby
Devalo has joined #ruby
pawnbox has quit [Remote host closed the connection]
saneax-_-|AFK has joined #ruby
manjaro-kde5 has joined #ruby
cek has joined #ruby
<cek> guys, anyone used eventmachine and its pool?
charliesome has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
chadwtaylor has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Remote host closed the connection]
last_staff has quit [Read error: Connection reset by peer]
gusrub_ has quit [Read error: Connection reset by peer]
catbusters has joined #ruby
hotpancakes has joined #ruby
gusrub_ has joined #ruby
Jackneill has joined #ruby
nankyokusei has quit []
benlieb has joined #ruby
mikecmpbll has joined #ruby
chadwtaylor has joined #ruby
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
ziarkaen has joined #ruby
gusrub_ has quit [Remote host closed the connection]
c355e3b has joined #ruby
Capela has joined #ruby
charliesome has quit [Ping timeout: 244 seconds]
ziarkaen has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
troys is now known as troys_
Capela has quit [Ping timeout: 268 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
chadwtaylor has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
marxarelli has joined #ruby
XV8 has joined #ruby
last_staff has joined #ruby
skweek has joined #ruby
<c-c> cek: I haven't but someone certainly has
firstdayonthejob has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
JesseH has joined #ruby
sagax has quit [Ping timeout: 250 seconds]
doublemalt_ has joined #ruby
last_staff has quit [Quit: last_staff]
DoubleMalt has quit [Read error: Connection reset by peer]
flashpoint9 has quit []
flashpoint9 has joined #ruby
frankiee_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
firstdayonthejob has joined #ruby
harai has quit [Ping timeout: 260 seconds]
chadwtaylor has joined #ruby
rfoust_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railssmi_ has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
chadwtaylor has quit [Remote host closed the connection]
sparch has quit [Ping timeout: 265 seconds]
sagax has joined #ruby
railssmith has quit [Ping timeout: 244 seconds]
charliesome has quit [Ping timeout: 250 seconds]
mustmodify has joined #ruby
<mustmodify> Say a report has a product_id. And you do product.build_report. Would you expect the existing report's product ID to be nulled out?
elementaru has quit [Read error: Connection reset by peer]
<c-c> this is a implementation specific rails question?
<c-c> - no way we could know what build_report should do
<mustmodify> Oh... sorry, wrong channel. My fault.
<mustmodify> I thought I was on #rails
Asher has quit [Client Quit]
Asher has joined #ruby
JeanCarloMachado has joined #ruby
manjaro-kde5 has quit [Ping timeout: 250 seconds]
dnicole has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 256 seconds]
dnicole has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
tubuliferous_ has quit [Ping timeout: 256 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
tubuliferous_ has joined #ruby
djbkd has joined #ruby
mim1k|work has quit [Ping timeout: 260 seconds]
byte512 has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
mim1k|work has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
djbkd has quit [Ping timeout: 250 seconds]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Devalo has quit []
brianpWins has quit [Quit: brianpWins]
flashpoint9 has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sneakers has quit [Read error: Connection reset by peer]
toretore has quit [Ping timeout: 252 seconds]
ziarkaen has joined #ruby
tyang has quit [Quit: Leaving]
DLSteve has joined #ruby
TPug has joined #ruby
flashpoint9 has quit [Ping timeout: 252 seconds]
byte512 has joined #ruby
igniting has joined #ruby
djbkd has joined #ruby
vuoto has joined #ruby
ziarkaen has quit [Ping timeout: 268 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
[spoiler] has quit [Ping timeout: 244 seconds]
gizmore has joined #ruby
gizless has quit [Ping timeout: 260 seconds]
<i8igmac> any simple login page tutorials you guys might suggest.
ereslibre_laptop has joined #ruby
ereslibre_laptop has joined #ruby
ereslibre_laptop has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
maesitos has quit [Remote host closed the connection]
<i8igmac> wrong chan
d5sx43 has quit []
<mustmodify> almost a pattern here...
edwinvdgraaf has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
igniting has quit [Ping timeout: 256 seconds]
<i8igmac> reconnect pattern?
hotpancakes has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
hutch34 has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby
eljimmy has joined #ruby
lele` has joined #ruby
synthroi_ has quit []
beawesomeinstead has quit [Ping timeout: 250 seconds]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
Lord_of_Life has quit [Remote host closed the connection]
tekku has quit [Ping timeout: 250 seconds]
ryotarai has quit [Ping timeout: 250 seconds]
lele has quit [Ping timeout: 250 seconds]
vuoto has quit [Remote host closed the connection]
CalimeroTeknik has quit [Ping timeout: 250 seconds]
Lord_of_Life has joined #ruby
7ITAAOQ8N has joined #ruby
Lord_of_Life has joined #ruby
Lord_of_Life has quit [Changing host]
beawesomeinstead has joined #ruby
[spoiler] has joined #ruby
tekk has joined #ruby
symm- has joined #ruby
ryotarai has joined #ruby
CalimeroTeknik has joined #ruby
Capela has joined #ruby
eljimmy has quit [Ping timeout: 250 seconds]
hinbody has quit [Ping timeout: 260 seconds]
lacour has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nahra has joined #ruby
vuoto has joined #ruby
hotpancakes has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_sfiguser has quit [Ping timeout: 256 seconds]
aidalgol has joined #ruby
aidalgol is now known as Guest39889
Guest39889 has quit [Remote host closed the connection]
bmurt has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
aidalgol- has joined #ruby
djbkd has quit [Remote host closed the connection]
Darmani has joined #ruby
<Darmani> So I wanted to compare two arrays together to see if any of the values were the same.
<Darmani> I thought this was the way to do it but I guess it doesn't work.
<Darmani> Could someone tell me why?
jenrzzz has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<vktec> Darmani: I can't access that link for some reason. Could you copy the code to something like bpaste.net?
aidalgol- is now known as aidalgol
<Darmani> vktec: oh sure, gimme a sec.
<Darmani> Hmm that website doesn't have a terminal to see the output...
<Darmani> Here it is though https://bpaste.net/show/c19d4954e281
<apeiros> Darmani: you're comparing letters with an array
<apeiros> like "L" == ["A", "E", …]
<apeiros> so no, that's not how to do it
vuoto has quit [Quit: Lost terminal]
<havenwood> Darmani: What you call `string` is in fact an Array
<Darmani> apeiros: How would you do it?
<apeiros> I'd use set operations
<c-c> ...You compare a single string to array
<havenwood> >> string = %w[A E I O U]; string.class
<ruby[bot]> havenwood: # => Array (https://eval.in/672129)
<apeiros> and yeah, naming-- :D
SteenJobs has quit [Quit: SteenJobs]
<Darmani> Set operations?
polishdub has quit [Quit: Leaving]
Joufflu has joined #ruby
<apeiros> yes. stuff like union, intersection, difference. array has them.
<c-c> aka enums?
<Darmani> Right.....
<c-c> too bad repl.it doesn't have help
djbkd has joined #ruby
<Darmani> So... What's the best way to search against an array for something you're looking for?
<apeiros> c-c: no, I don't think we call set operations "enums".
<apeiros> an enum is a datatype.
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<c-c> Darmani: but your local irb might have... type help<enter>, and then type Set<enter>
mustmodify has left #ruby [#ruby]
<apeiros> or an interface. depending on what you talk about :)
<Darmani> Like if I was looking through an array for a specific letter? Or a name or something.
<apeiros> Darmani: that's a different question than "test if any of the values are the same"
<Darmani> apeiros: It is?
<apeiros> Array#include? tests for presence of an element.
interpolate has quit [Quit: interpolate]
<apeiros> of course. you don't see the difference?
interpolate has joined #ruby
<Darmani> apeiros: oh I understand.
<Darmani> Yeah I get it.
interpolate has quit [Client Quit]
<apeiros> :)
<Darmani> I guess what I'm looking for though is... If the presence of the element I'm looking for is not in the array...
<Darmani> Do... Something.
<apeiros> note - I'm not giving you a straight answer because I remember you want to solve stuff yourself. right?
askhader has joined #ruby
<Darmani> apeiros: That's one way to learn. Once someone show's me how to do something I never forget how to do it.
<Darmani> That's how I learn.
<apeiros> well, up to you. I'll give you the straight answer if you want.
josealobato has joined #ruby
lele` is now known as lele
_sfiguser has joined #ruby
<Darmani> apeiros: What did you tell me before? To look through Enums for a method?
<apeiros> through Array for set operations
<apeiros> Enumerable doesn't have them
hotpancakes has quit [Remote host closed the connection]
ag4ve_ has quit [Ping timeout: 250 seconds]
<apeiros> that was for "whether two arrays have values in common"
<Darmani> apeiros: Right. I guess I could start there. If I get desperate I'll come back here.
benlieb has quit [Quit: benlieb]
Pumukel has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
spt0 has quit [Remote host closed the connection]
sneakers has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
7ITAAOQ8N has quit [Quit: This computer has gone to sleep]
Capela has joined #ruby
ag4ve_ has joined #ruby
chadwtaylor has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
bmurt has joined #ruby
Capela_ has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
Capela_ has quit [Remote host closed the connection]
bmurt has quit [Client Quit]
eizua has quit [Quit: Leaving]
igniting has joined #ruby
djbkd has quit [Remote host closed the connection]
platzhirsch has joined #ruby
josealobato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
_scottschecter has joined #ruby
millerti has joined #ruby
igniting has quit [Ping timeout: 250 seconds]
A124 has quit [Quit: '']
quazimodo has joined #ruby
<Darmani> apeiros: Could you show me? I'm stuck.
<apeiros> Darmani: got the link to your current code?
<apeiros> ah, found it
<apeiros> >> letters = %w[A E I O U]; mystr = "LTA"; mystr.chars & letters # common elements
<ruby[bot]> apeiros: # => ["A"] (https://eval.in/672132)
<Darmani> Wait... I don't get it. You split the array and... Then what?
<apeiros> I don't split any array :)
<Darmani> apeiros: Does that Ampersand automatically compare arrays?
A124 has joined #ruby
<apeiros> no. Array#& is intersection. i.e. common elements of two arrays.
<apeiros> letters already is an array
flashpoint9 has joined #ruby
<Darmani> apeiros: oh that's so convenient... Wow.
<apeiros> and mystr is a string which I convert into an array of characters via String#chars
<Darmani> What if that method wasn't available?
<Darmani> How would you do it then?
<apeiros> depends on the requirements.
<cek> why isn't EventMachine::DefChildProcess.open(cmd).callback {|*args| cb.succeed(*args) } equal to .open(cmd).callback(&cb.succeed) ?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> if I had to do it in a scalable way, I'd implement Array#& myself. it's essentially building a hash with the array as keys and testing the other array against those keys.
doublemalt_ has quit [Ping timeout: 256 seconds]
<Darmani> apeiros: gotcha.
<Darmani> Thanks for showing me!
flashpoint9 has quit [Client Quit]
<apeiros> yw
<c-c> cek: perhaps the latter doesn't quite get the args in the same manner
ziarkaen has joined #ruby
<cek> c-c: nah, it has something to do with how ruby understands that i'm passing a block not an argument
<c-c> quick guess from the: first gets *args, latter gets args
chadwtaylor has quit [Remote host closed the connection]
hotpancakes has joined #ruby
chadwtaylor has joined #ruby
<apeiros> &(cb.succeed.to_proc)
<apeiros> that's what it executes
<cek> so, &obj.method won't actually pass method but call .method , then pass whatever is returned as method?
chadwtaylor has quit [Remote host closed the connection]
<hammeds> anyone here has hotmails or outlooks list ping meanyone here know command on cygin how to filter plz tell me
scottschecter has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> cek: almost. it will then try to convert whatever the method returned into a block using to_proc (if it isn't already a Proc instance)
gusrub_ has joined #ruby
<Darmani> apeiros: Question, what if I wanted to return a true/false value instead of that object?
<cek> okay, what's the proper way to pass that then?
<apeiros> Darmani: .empty? is your friend then.
<apeiros> cek: use the full block notation.
<apeiros> i.e. with {} or do/end.
<Darmani> apeiros: Damn you're good.
<apeiros> Darmani: that's why some people pay me a lot of money to work for them ;-)
djbkd has quit [Remote host closed the connection]
ziarkaen has quit [Ping timeout: 244 seconds]
CalimeroTeknik has quit [Quit: バイバイ]
Capela has joined #ruby
<Darmani> apeiros: Is there any books you would recommend I read or anything?
<cek> what about .callback(&cb.method(:succeed)) ?
<apeiros> Darmani: not really, sorry. there are plenty I can recommend by heaving heard of them being good, though.
weemsledeux has joined #ruby
<Darmani> Kk no worries!
<apeiros> sandi metz' poodr. ruby under the microscope. the one by ian flannigan (hope it's spelled that way) and matz
<apeiros> oh, eloquent ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<apeiros> cek: I think that'd be equivalent, yes.
CalimeroTeknik has joined #ruby
workmad3 has joined #ruby
hutch34 has joined #ruby
_scottschecter is now known as scottschecter
<c-c> Flanagan and Matz "The Ruby Programming Language" was great to learn cornerstones from when I borrowed it (in 2010? :)
benlieb has joined #ruby
<apeiros> ?books Darmani
<ruby[bot]> Darmani: You can find a list of recommended books at http://ruby-community.com/pages/links
<Darmani> apeiros: Got it!
<apeiros> feel free to report missing books :)
zeroDi has joined #ruby
djbkd has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
leea has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
claudiuinberlin has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 244 seconds]
<cek> tnx, that worked. eventmachine.rb:202: [BUG] Segmentation fault at 0x00000000000000
hutch34 has quit [Ping timeout: 256 seconds]
dcluna has left #ruby ["ERC (IRC client for Emacs 25.1.50.1)"]
dcluna has joined #ruby
claudiuinberlin has joined #ruby
anuxivm has quit [Quit: Leaving.]
rfoust has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
hahuang61 has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
hahuang61 has joined #ruby
eljimmy has joined #ruby
dasher00 has quit [Ping timeout: 256 seconds]
splud_ has quit [Quit: splud_]
eljimbo has joined #ruby
e14 has joined #ruby
aeontech has quit [Quit: aeontech]
eljimmy has quit [Ping timeout: 250 seconds]
Capela has joined #ruby
emilkarl has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
coyo has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
coyo is now known as Guest62014
e14 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilkarl has quit [Client Quit]
Capela has quit [Ping timeout: 260 seconds]
mpwin has quit [Quit: Leaving...]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
interpolate has joined #ruby
hutch34 has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
dnicole has joined #ruby
ankitraj has joined #ruby
<ankitraj> hello rubyist h/
jenrzzz has quit [Ping timeout: 260 seconds]
ankitraj has quit [Client Quit]
E7F3RN4 has quit [Ping timeout: 265 seconds]
al2o3-cr has quit [Ping timeout: 250 seconds]
e14 has joined #ruby
weemsledeux has quit [Ping timeout: 250 seconds]
dasher00 has joined #ruby
scottschecter has quit [Quit: Leaving]
cpruitt has quit [Quit: cpruitt]
AndrewIsHere has joined #ruby
al2o3-cr has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit []
Capela has joined #ruby
Guest62014 has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
aeontech has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jhack has quit [Quit: jhack]
faces has joined #ruby
SeepingN has joined #ruby
Rickmasta has joined #ruby
mic_e has quit [Read error: Connection reset by peer]
quazimodo has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Rickmasta has quit [Ping timeout: 252 seconds]
hinbody has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
dnicole has quit [Remote host closed the connection]
ziarkaen has joined #ruby
dnicole has joined #ruby
bob434 has quit [Quit: Leaving]
bob434 has joined #ruby
e14 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub_ has quit [Remote host closed the connection]
ace05 has quit [Remote host closed the connection]
evidex has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
dnicole has quit [Ping timeout: 268 seconds]
jcao219 has joined #ruby
brianpWins has quit [Quit: brianpWins]
Joufflu has quit [Read error: Connection reset by peer]
miqlas-H has joined #ruby
ace05 has joined #ruby
Capela has joined #ruby
bob434 has quit [Ping timeout: 268 seconds]
codfection has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
scottschecter has joined #ruby
atmosx has joined #ruby
benlieb has quit [Quit: benlieb]
bmurt has joined #ruby
atmosx_ has quit [Ping timeout: 260 seconds]
ixti has quit [Quit: WeeChat 1.6]
Capela has quit [Ping timeout: 260 seconds]
blackwind_123 has quit [Ping timeout: 250 seconds]
gusrub_ has joined #ruby
atmosx has quit [Ping timeout: 260 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
atmosx has joined #ruby
tubuliferous has joined #ruby
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
aeontech has quit [Quit: aeontech]
gusrub_ has quit [Remote host closed the connection]
brianpWins has joined #ruby
e14 has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
platzhirsch has joined #ruby
Fichtenstein has quit [Quit: Fichtenstein]
millerti has joined #ruby
ziarkaen has joined #ruby
gusrub_ has joined #ruby
saneax-_-|AFK is now known as saneax
Capela has joined #ruby
Capela has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 268 seconds]
ziarkaen has quit [Ping timeout: 252 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rumbles has joined #ruby
Capela has joined #ruby
interpolate has quit [Quit: interpolate]
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
Capela has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 265 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
firstdayonthejob has quit [Ping timeout: 260 seconds]
e14 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anuxivm has joined #ruby
last_staff has joined #ruby
last_staff has quit [Client Quit]
grapheti has joined #ruby
grapheti has left #ruby ["Be back later..."]
Capela has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
hutch34 has quit [Ping timeout: 265 seconds]
aeontech has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
DLSteve has joined #ruby
sneakers has quit [Ping timeout: 252 seconds]
cdg has quit [Remote host closed the connection]
Rumbles has quit [Ping timeout: 252 seconds]
Mia has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
ur5us has quit [Remote host closed the connection]
hotpancakes has joined #ruby