bruce_lee has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
br0d1n has joined #ruby
agent_white has quit [Quit: bbl]
<allisio>
Nah, you can still blame him.
<bg>
i use 8 space indent when writing ruby
<allisio>
You'll burn in hell.
<jhack>
Hey!
<allisio>
josh25: You wouldn't.
username1 has joined #ruby
<jhack>
Are there any gems/resources out there that can help me understand the source code of a production application quicker? (Ex: Providing documentation based on the code/routes)
saneax is now known as saneax-_-|AFK
<allisio>
josh25: If you can be sure that all the elements of `list` are unique, `list.delete prod` should work, but modifying a collection while you're iterating over it is generally a bad idea.
pulkit4tech has quit [Quit: Connection closed for inactivity]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
rhyselsmore has joined #ruby
balazs has quit [Quit: Ex-Chat]
eclecticjohny has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Tempesta has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagmz has quit [Quit: Leaving]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Derperperd has quit [Ping timeout: 260 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
gix has quit [Ping timeout: 246 seconds]
grant has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
gix has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
gusrub has quit [Client Quit]
jameser has quit [Ping timeout: 240 seconds]
rhyselsmore has joined #ruby
rhyselsmore has quit [Client Quit]
rhyselsmore has joined #ruby
b4udv8 has joined #ruby
nOwz has joined #ruby
pilne has quit [Quit: Quitting!]
pulkit4tech has joined #ruby
nOwz has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Ping timeout: 240 seconds]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
Tempesta_ has joined #ruby
chouhoulis has joined #ruby
pabloh has quit [Quit: Leaving]
Tempesta has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 256 seconds]
milardovich has quit [Remote host closed the connection]
cschneid_ has joined #ruby
b4udv8 has left #ruby ["WeeChat 1.4"]
cschneid_ has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Tempesta_ is now known as Tempesta
Tempesta has quit [Changing host]
Tempesta has joined #ruby
raul782 has joined #ruby
raul782 has quit [Remote host closed the connection]
<matthewd>
Also there would be people with fairly strong opinions both ways on whether true.to_i should be 1 or -1
jenrzzz has quit [Ping timeout: 268 seconds]
xall has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
pawnbox has quit [Ping timeout: 268 seconds]
Derperperd has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
shinnya has joined #ruby
bkxd_ has joined #ruby
jameser has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
rkazak_ has quit [Quit: Sleep.....ing....]
jameser has quit [Ping timeout: 240 seconds]
petrichorx_ has quit [Quit: Connection closed for inactivity]
elifoster has joined #ruby
ResidentBiscuit has joined #ruby
petrichorx_ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xen0fon has quit [Ping timeout: 240 seconds]
dstrunk has joined #ruby
<allisio>
matthewd: No, there wouldn't.
<matthewd>
allisio: Are you at least going to tell me which category you think everyone would be in? :P
<allisio>
matthewd: That you could reasonably guess is my defense.
ramfjord has quit [Ping timeout: 260 seconds]
dstrunk has quit [Ping timeout: 264 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
djbkd has quit [Quit: Leaving...]
<matthewd>
I genuinely don't know. I'm on team -1.
<elomatreb>
A C programmer might say true/false should be 1/0
<matthewd>
More accurately, I'm on team ~0
<matthewd>
But yes, I think it's going to come down to your [potentially quite distant] background
<allisio>
matthewd: What're some languages that use -1 for "true"?
<matthewd>
In my case it's a BASICism
<matthewd>
`False = 0; True = Not False`
<matthewd>
It's always seemed so intuitively reasonable to me, I've just assumed it's a not-uncommon choice elsewhere. Maybe I'm more alone than I thought.
ss_much has quit [Quit: Connection closed for inactivity]
Channel6 has quit [Quit: Leaving]
Derperperd has quit [Ping timeout: 260 seconds]
xall has joined #ruby
ebcz has joined #ruby
jameser has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jameser has quit [Ping timeout: 256 seconds]
enterprisey has quit [Remote host closed the connection]
jamesaxl has joined #ruby
xall has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
_whitelogger has joined #ruby
nOwz has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
nOwz has quit [Client Quit]
montanonic has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
jgnagy has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
kernelPaniq has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
renchan has joined #ruby
pawnbox has joined #ruby
jameser has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
ResidentBiscuit has joined #ruby
dionysus69 has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
brent__ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
d0nn1e has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ruby
dlitvak has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
xall has joined #ruby
tildes_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
khaki has joined #ruby
TomyLobo has joined #ruby
pawnbox has quit [Remote host closed the connection]
jenrzzz has joined #ruby
petrichorx_ has quit [Quit: Connection closed for inactivity]
milardovich has joined #ruby
khaki has quit [Quit: WeeChat 1.7]
nofxxx has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
nofxx has quit [Ping timeout: 260 seconds]
bg has quit [Ping timeout: 260 seconds]
Derperperd has joined #ruby
cschneid_ has joined #ruby
SuperLag_ has joined #ruby
TomyLobo has quit [Read error: Connection reset by peer]
SuperLag_ has quit [Client Quit]
cschneid_ has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
SuperLag has joined #ruby
Qchmqs has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
jackjackdripper has joined #ruby
xall has quit [Ping timeout: 258 seconds]
hotpancakes has joined #ruby
xall has joined #ruby
Jackneill has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
eclecticjohny has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
resin has quit [Quit: leaving]
Pumukel has joined #ruby
hogetaro has quit [Quit: Leaving...]
hotpancakes has joined #ruby
conta has joined #ruby
horst has quit [Quit: horst]
tildes_ has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
xall has joined #ruby
tomphp has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
TomyLobo has joined #ruby
Pumukel has joined #ruby
tildes_ has joined #ruby
TomyLobo has quit [Client Quit]
cschneid_ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
certainty has joined #ruby
TomyLobo has joined #ruby
TomyLobo has quit [Client Quit]
TomyLobo has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Pumukel has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
certainty has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
jameser has joined #ruby
hogetaro has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
__main__ has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Pumukel has joined #ruby
jameser has quit [Ping timeout: 268 seconds]
hfp_work has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
Pumukel has joined #ruby
pawnbox has joined #ruby
jenrzzz has joined #ruby
certainty has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
__main__ has joined #ruby
ResidentBiscuit has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
pandaant has joined #ruby
Pumukel has joined #ruby
quaristice has joined #ruby
acalycine has quit [Quit: bye]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
Jackneill has quit [Quit: Leaving]
zeroDi has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
Pumukel has joined #ruby
xall has quit [Ping timeout: 256 seconds]
Arpanet69 has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
cfec0b8d has joined #ruby
hotpancakes has joined #ruby
brent__ has joined #ruby
d^sh has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
quaristice has quit [Remote host closed the connection]
lxsameer has joined #ruby
brent__ has quit [Ping timeout: 268 seconds]
Qchmqs has quit [Ping timeout: 246 seconds]
BackEndCoder has quit [Excess Flood]
BackEndCoder has joined #ruby
quaristice has joined #ruby
pawnbox has joined #ruby
JeanCarloMachado has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
makkuzin has joined #ruby
Pumukel has joined #ruby
nowhere_man has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
makkuzin has quit [Client Quit]
makkuzin has joined #ruby
makkuzin has quit [Client Quit]
Pumukel has quit [Ping timeout: 264 seconds]
Bounga has joined #ruby
loechel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
milardovich has joined #ruby
shinnya has joined #ruby
nowhere_man has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
Pumukel has joined #ruby
oetjenj has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
morfin has joined #ruby
<morfin>
you can clone class and then add methods in it?
elifoster has quit [Ping timeout: 240 seconds]
tildes_ has quit [Ping timeout: 240 seconds]
Arpanet69 has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
Pumukel has joined #ruby
yusrideb has quit [Ping timeout: 258 seconds]
<matthewd>
morfin: If that was a question.. yes.
yusrideb has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<dminuoso>
morfin: Everything (well almost) is an object, even classes.
<dminuoso>
morfin: And objects you can clone/dup
Pumukel has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
<matthewd>
(well most objects)
nowhere_man has quit [Read error: Connection reset by peer]
<dminuoso>
Well its not exactly comprehensive, but well
Pumukel has joined #ruby
<dminuoso>
matthewd: Why can't you clone a thread?
<dminuoso>
That's something I would have expected to work actually.
<matthewd>
I'd guess related to the fact it has a C stack.. what would it even mean? Like a thread-level fork, that you could perform from the outside?
<matthewd>
Class is in the above list because you can't dup a singleton class; regular ones you can
hotpancakes has joined #ruby
<dminuoso>
take the whole iseq inside the block that defines the thread, and start a new one?
<matthewd>
(and it obviously misses immediates, because each_object won't find any)
<dminuoso>
Well and it will miss all the fancy things that are not constructed yet
<dminuoso>
Let me run this in my uber sized Rails application, surely that's more generous in ObjectSpace
<dminuoso>
NotImplementedError: need to define `__setobj__' from ...rubies/ruby-2.3.3/lib/ruby/2.3.0/delegate.rb:168:in `__setobj__'
<dminuoso>
o_O
<dminuoso>
That is un-rescueable.
<matthewd>
It's not unrescueable, it just doesn't inherit StandardError
<dminuoso>
Oh
<dminuoso>
Curious
vuoto has joined #ruby
<matthewd>
.. and it really shouldn't be used there, which is interesting, given it's stdlib
<matthewd>
That's not rescuing what you think it is
szulak has joined #ruby
<dminuoso>
>> begin raise Class.new; rescue; p $!; end
<ruby[bot]>
dminuoso: # => #<TypeError: exception class/object expected> ...check link for more (https://eval.in/752864)
<j416>
dminuoso: I think it's nice to explicitly say that you're rescuing StandardError; makes it more readable
<dminuoso>
:S
<dminuoso>
I see.
<dminuoso>
matthewd: Not so long ago I tricked baweaver into this:
<j416>
(and obvious, since perhaps StandardError is not what you want to rescue most of the time)
<matthewd>
Thus NotImplementedError being a bit of a trap: it looks like you want it to mean "my method doesn't support this yet", but it's supposed to be used only for things the *runtime* hasn't implemented
<dminuoso>
elomatreb: That's a bummer. In particular because S-expressions give LISP a special property called homoiconicity.
jenrzzz has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
<dminuoso>
elomatreb: Do they have self-modifying programs on your class schedule at any point?
nowhere_man has quit [Ping timeout: 258 seconds]
ddffg has joined #ruby
<elomatreb>
I have a module next semester titled "Advanced Practical Programming" that is supposed be about functional languages, maybe they'll touch on such topics in there. Mostly just basics/framework so far
<elomatreb>
I.e. first semester was learning how a CPU works, second how an OS works, etc
milardovich has quit [Ping timeout: 246 seconds]
sid_fules has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ddffg has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
jameser has joined #ruby
hotpancakes has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
DoubleMalt has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
hotpancakes has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
JeanCarloMachado has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
postmodern has quit [Quit: Leaving]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
lxsameer has quit [Quit: WeeChat 1.6]
sid_fules has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
esObe___ has quit [Remote host closed the connection]
pawnbox has joined #ruby
ddffg has joined #ruby
rolls has joined #ruby
rolls is now known as tau
esObe_ has joined #ruby
hotpancakes has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Jackneill has joined #ruby
conta has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
Qchmqs has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
pawnbox has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
millerti has joined #ruby
Pumukel has joined #ruby
spicerack has joined #ruby
nowhere_man has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
petrichorx_ has joined #ruby
raul782 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
Xiti has quit [Quit: Xiti]
sid_fules has joined #ruby
patarr has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
vuoto has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
milardovich has quit [Ping timeout: 268 seconds]
Pumukel has joined #ruby
bg has joined #ruby
sagax has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
ruid has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
schickung has joined #ruby
Pumukel has joined #ruby
Guest24 has joined #ruby
jameser has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
griffindy has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
brent__ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
bg has quit [Ping timeout: 260 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<canton7>
ddffg, that only gives you 1 of each letter
milardovich has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
milardovich has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AngryNorseMn has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ddffg>
canton7, for folder names is better to have distinct letters
<canton7>
is it?
<ddffg>
yeah
<canton7>
on what basis?
<ddffg>
more stable
<canton7>
"stable"? Do your folders often fall ove?
<canton7>
*over
jameser has joined #ruby
AngryNorsMan has quit [Ping timeout: 240 seconds]
AngryNorseMn has quit [Ping timeout: 240 seconds]
bg has joined #ruby
Derperperd has joined #ruby
lightheaded has joined #ruby
matju has joined #ruby
Arpanet69 has joined #ruby
fold4 has quit [Ping timeout: 264 seconds]
millerti has joined #ruby
jhack has joined #ruby
<matthewd>
If the names are going to be seen anywhere (so not just local tempfiles -- and if they are, maybe you should be using Tempfile), there are other potential concerns with giving it the full alphabet to play with
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
conta has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
matthewd has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
Pumukel has joined #ruby
psychicist__ has joined #ruby
bg has quit [Ping timeout: 240 seconds]
raul782 has quit [Ping timeout: 256 seconds]
ruid has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
matthewd has joined #ruby
Pumukel has joined #ruby
Blaguvest has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
aesthetikx has joined #ruby
JoshS has joined #ruby
petrichorx_ has quit [Quit: Connection closed for inactivity]
Pumukel has joined #ruby
millerti has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ss_much has joined #ruby
User458764 has joined #ruby
millerti has quit [Client Quit]
cdg has joined #ruby
slackR has joined #ruby
bkxd has joined #ruby
schickung_ has joined #ruby
schickung has quit [Ping timeout: 240 seconds]
schickung_ is now known as schickung
bg has joined #ruby
<bg>
ruby folks
<bg>
why would you use #zero? instead of == 0?
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
<apeiros>
mostly a matter of style, whether you consider it to express intent more clearly
millerti has joined #ruby
hotpancakes has joined #ruby
jameser has joined #ruby
minimalism has quit [Quit: minimalism]
Qchmqs has quit [Quit: Konversation terminated!]
Pumukel has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
<jeffreylevesque>
is that array implementation ok?
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
<canton7>
jeffreylevesque, 1) use File.join on line 7, 2) use `servers.map` instead of creating an array and when adding to it in that `each`
A124 has quit [Quit: '']
<bg>
another question for you folks (i asked this last night but i fell asleep so i apologize if it was answered) -- what don't TrueClass and FalseClass have #to_i so i can get 1 or 0 from a boolean?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bg>
matthewd: note that you can't simplify it like that if you don't know the number. what if it's a complex expression?
<bougyman>
course you can just use File.join without requiring pathname.
<bougyman>
I'm just a pathname fanatic since I was a common-lisper.
<matthewd>
I generally wouldn't bother with File.join, fwiw
<bg>
`bool.to_i * f(a[b], c) + 3` vs. `bool ? f(a[b], c) + 3 : 3`
<adam12>
Is there a definitive guide to Ruby path handlng
DLSteve has joined #ruby
<adam12>
I've been doing this a long time and I still can never remember expand_path, join, etc use cases.
<matthewd>
`(bool ? f(..) : 0) + 3` ¯\_(ツ)_/¯
<matthewd>
bg: I'd still argue you're hiding a conditional inside a multiplication, which feels... C-ish
<bg>
it feels "C-ish" and that makes it bad?
<slackR>
bougyman, would it be bad? if he used heira instead of current directory, as he's using it at multiple places.
<matthewd>
Insofar as that implies it's unrubyish, yes
<bg>
why can't it be both?
Pumukel has joined #ruby
<slackR>
bg, because we are nice and we are not into language wars.
<matthewd>
If it were, I wouldn't be describing it as C-ish
eclecticjohny has joined #ruby
<matthewd>
`a * b` isn't both C-ish and ruby-ish, it.. just is.
<bg>
i don't consider it "hiding" a conditional
<bg>
actually i think it's the best way of expressing it, because it's strictly less powerful than general purpose branching structures like `?:` or `if`.
alan_w has joined #ruby
<bg>
if you can express your branching with a multiplication, it says something about your program
<bougyman>
It says: Screw the next guy who has to maintain this.
<matthewd>
bg: This is the problem with "why" questions.
Pumukel has quit [Ping timeout: 264 seconds]
<bg>
bougyman: no it doesn't.
<matthewd>
bg: I can tell you why I, as a rubyist, would find that method to be odd... as a best-attempt approximation of why some other people might have chosen for it to not exist
Pumukel has joined #ruby
<matthewd>
bg: But you trying to counter-argue that I'm wrong doesn't get us anywhere. Even if you managed to convince me, the best possible scenario is I agree with you the method should exist, while it continues to not be there.
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
hotpancakes has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bg>
well the reason i asked is in case there were a really good reason that i hadn't considered
nettoweb has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<matthewd>
Setting aside what such a "really good reason" could possibly look like... how would that help anyway?
nettoweb has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
_aeris_ has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
aesthetikx has quit [Ping timeout: 260 seconds]
_aeris_ has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
Bounga has joined #ruby
Pumukel has quit [Read error: Connection timed out]
<bg>
slackR: wow i lost respect for Matz reading that
<matthewd>
Were you expecting him to agree with you? :/
hotpancakes has joined #ruby
<bg>
no, but his argument makes no sense
<slackR>
bg, was just pointing the inconsistencies
psychicist__ has quit [Ping timeout: 260 seconds]
<bg>
i feel like if _Bool were not an integer type in C, he'd be more open to the idea of #to_i on booleans. which doesn't really make sense. it seems like he just wants to distance ruby from C rather than making it the best it can be.
psychicist__ has joined #ruby
<canton7>
in C, 0 is falsy. In ruby, 0 is truthy
<canton7>
I agree with him
quaristice has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
<slackR>
canton7, nil is falsy, nil.to_i is truthy isn't that funny?
cdg has quit [Remote host closed the connection]
<canton7>
yeah, I'm not sure I agree with nil.to_i either :P
quaristice has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
<matthewd>
bg: It's not an argument, it's an explanation. The argument presented was "1 and 0 are fairly common numeric values for false and true [in other, e.g. C-like, languages]". Matz explained why that argument was not persuasive to him.
<allisio>
They do have an "environment" but, as bg pointed out, they also interact with the rest of Ruby in characteristically stateful ways.
mula has joined #ruby
BTRE has joined #ruby
Bounga has quit [Ping timeout: 240 seconds]
psychici1t__ has joined #ruby
joes_ has quit [Quit: Leaving]
joes_ has joined #ruby
<noan>
dear santa: for christmas I want to know if the topleft pixel in rmagic is 0, 0, or 1, 1
Pumukel has quit [Ping timeout: 240 seconds]
joes_ has quit [Client Quit]
montanonic has joined #ruby
DARPA has joined #ruby
joes_ has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
joes_ has quit [Remote host closed the connection]
hongkongphooy has joined #ruby
enterprisey has joined #ruby
Arpanet69 has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
twistedpixels_ has quit [Ping timeout: 240 seconds]
rkazak_ has joined #ruby
cfec0b8d has joined #ruby
bougyman has quit [Ping timeout: 258 seconds]
rkazak_ has quit [Client Quit]
twistedpixels_ has joined #ruby
_joes__ has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
rkazak_ has joined #ruby
_joes__ has quit [Client Quit]
bougyman has joined #ruby
bougyman has joined #ruby
<sparr>
when I raise an exception inside a block being passed to a function, the outermost layer of my backtrace points to the line starting the function call, not the problematic line inside the block. Is there any way to augment that with more useful information?
tildes_ has joined #ruby
<sparr>
sorry, I don't mean that my code intentionally raises an exception. I mean something further down in the call stack from my block raises it.
<aesthetikx>
I find myself doing array_of_hashes.map { |h| h['name'] } like 100 times a day, is there any syntax sugar I am unaware of to shorten this, like .map(&:[], 'name') or similar
gk- has joined #ruby
<aesthetikx>
til array_of_hashes.pluck('name'), nvm :)
gk- has quit [Excess Flood]
conta has quit [Ping timeout: 260 seconds]
gk- has joined #ruby
mula has quit [Remote host closed the connection]
gk- has quit [K-Lined]
jenrzzz has joined #ruby
<matthewd>
sparr: Got an example? The backtrace should point to the actual line that's at fault, unless something's choosing to mangle it.
t-recx has joined #ruby
gk- has joined #ruby
ujjain has quit [Read error: Connection reset by peer]
<matthewd>
aesthetikx: pluck is a Rails-ism, but yeah, a handy one
<sparr>
I don't I have encountered this behavior myself as well, but don't have a test case handy. What's ahppening is that some library code is raising an exception somewhere inside the code block attached to Decknew(), and then the backtrace just calls out the deck.new() call instead of the line inside the block where the problem was.
jenrzzz has quit [Ping timeout: 240 seconds]
<matthewd>
So, the problem is the DSL implementation
<sparr>
right, but what line inside Deck.new() leads to the call to the call to the call to the call to layout_parser.rb?
<matthewd>
The line that's *causing* the problem is one of the lines inside the DSL
gk- has quit [K-Lined]
<matthewd>
But the exception isn't occurring while that line is running
DARPA has quit [Ping timeout: 268 seconds]
<sparr>
let me make a test case to ask my question better
joelwallis has joined #ruby
joelwallis has quit [Client Quit]
gk- has joined #ruby
<baweaver>
dminuoso / matthewd: I am not me without coffee in the mornings. *curses 5AM wakeup*
Pumukel has joined #ruby
* matthewd
looks at the clock
muelleme has joined #ruby
<baweaver>
was replying to message from a while back
<sparr>
damn, I can't reproduce it in a trivial test case
<matthewd>
sparr: That's what the squib example boils down to
<sparr>
I'll be back with a better example
<sparr>
sorry
<matthewd>
sparr: The exception points at line 3 (inside the library) then line 9 in the app code
Pumukel has joined #ruby
<matthewd>
sparr: The line at *fault* is line 7, but it can't know that
pawnbox has quit [Remote host closed the connection]
User458764 has joined #ruby
psychicist__ has joined #ruby
pawnbox has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
JoshS has quit [Quit: Leaving]
hogetaro has quit [Quit: Leaving...]
vict83 has quit [Ping timeout: 260 seconds]
joelwallis has quit []
joelwallis has joined #ruby
joelwallis has quit [Client Quit]
szulak has joined #ruby
<jamesaxl>
hi
conta has joined #ruby
MasterRex has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
gk- has joined #ruby
gk- has quit [Excess Flood]
Silthias has joined #ruby
jhack has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sid_fules has joined #ruby
Pumukel has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
aesthetikx has quit [Ping timeout: 264 seconds]
Bounga has joined #ruby
vuoto has joined #ruby
sid_fules has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
bestel has joined #ruby
sid_fules has joined #ruby
<bestel>
Hello!
Bounga has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
<bg>
hi bestel
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ujjain has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
MasterRex has quit [Ping timeout: 264 seconds]
<bg>
bestel: how are you today
<bg>
hi jamesaxl
<bestel>
NIce, u?)
hotpancakes has joined #ruby
<bg>
im ok
<jamesaxl>
bg, hello
muelleme has joined #ruby
<bg>
how are you jamesaxl
irc2000 has joined #ruby
<irc2000>
Am I racist if I only have bad experience of black people where I've met 10 of them ever and 10 of them were serial killers? Does that make me a racist?
ujjain has joined #ruby
pawnbox has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
<bg>
how could that possibly make you a racist
Pumukel has joined #ruby
<bg>
your scenario didn't include any of your thoughts or actions
<bg>
racists are characterized by their behavior and their beliefs
ujjain has quit [Changing host]
ujjain has joined #ruby
<bg>
simply having something happen to you can't make you a racist
<bestel>
bg: I'm newbie in ruby. How record a result every time a cycle is traversed?
<irc2000>
bg: well, I beleive that 10 of those BLACK PEOPLE were serial killers (which has been proven). Am I a racist then?
<bg>
if you hate black people because 100% of the black people you've met are serial killers, does that make you racist? that's a more interesting question
<bg>
irc2000: are you a racist for believing something that has been proven? hardly
<bg>
bestel: what is a cycle?
<bestel>
loop
<irc2000>
bg: well, matthewd seems to think that I'm racist
<irc2000>
bg: he'll ban me for racism
<bg>
well you're off-topic, that's for sure
<bg>
bestel: what does it mean to record a result?
<irc2000>
bg: if I was talking about how great is particular choice of religion is instead, he wouldn't ban me
User458764 has joined #ruby
<irc2000>
I am black and you matthewd is a racist for banning me.
irc2000 has left #ruby [requested by matthewd (irc2000)]
tildes__ has joined #ruby
raul782 has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
tildes_ has quit [Ping timeout: 258 seconds]
raul782 has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
griffindy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
psychicist__ has quit [Ping timeout: 240 seconds]
psychicist__ has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
<sparr>
are there ruby libraries that can manipulate SVG files to the depth of being able to split a <path> or <polyline> in half?
mula has joined #ruby
Channel6 has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
houhoulis has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
jhack_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jhack has quit [Ping timeout: 240 seconds]
<bestel>
bg: an array changes in my loop 3 times, [1,2,3], [2,1,3], [2,3,1]. How can I add this array in other array in every iteration?? result << [1,2,3], result << [2,1,3], result << [2,3,1]
jhack_ is now known as jhack
jhack has quit [Changing host]
jhack has joined #ruby
szulak has joined #ruby
nightfog has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<bg>
bestel: it sounds like you already know how...
<bg>
result << a every time a changes
<allisio>
bestel: There's probably a much better way to do what you're trying to do.
<bg>
looks like some kind of next_permutation algorithm
Pumukel has joined #ruby
millerti has joined #ruby
<bestel>
bg: I know .permutation method, but need to do it without it(
mula has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
ss_much has quit [Quit: Connection closed for inactivity]
<matthewd>
leitz: The better question would be: how did that file end up there? :/
<leitz>
More to the point, how do I fix the gem to make it work properly.
tomphp has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<leitz>
matthewd, I dunno. I copied it from /usr/bin/Chargen to toys to push it up to github. I'm new to gems, so it's probably operator error. Just not sure how to fix it.
<leitz>
When I did the original install there was a /usr/bin/ruby. Now there's not. Does the gem install chose the first Ruby in the path?
<leitz>
Wait, scratch that; i removed the old ruby before the gem install this time.
Pumukel has joined #ruby
workmad3 has joined #ruby
<matthewd>
gem install will use the ruby it's running under
<matthewd>
But you shouldn't be committing that file. It will, as you saw, get generated when the gem is installed.
ResidentBiscuit has joined #ruby
m_31 has joined #ruby
<leitz>
Well, maybe it's supposed to... I removed old ruby versions and then installed the gem. The /usr/bin/Chargen may have been left over, but I removed it and removed the gem and reinstalled. /usr/bin/Chargen was not put back in place.
Pumukel has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Client Quit]
Pumukel has joined #ruby
<matthewd>
It'll be put in the appropriate place depending on how rubygems is configured
vuoto has quit [Ping timeout: 260 seconds]
<matthewd>
Point is, it's generated on install. It even has a comment describing that fact.
sid_fules has joined #ruby
ResidentBiscuit has joined #ruby
<leitz>
I can edit the file and put it in place and things work.
<leitz>
So the first hurdle is making sure the gem puts the file in place. Have a pointer to a tutorial on that?
<matthewd>
`gem env` should tell you where it'll put it
Pumukel has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby
Pumukel has joined #ruby
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<leitz>
Okay, cool. That's /usr/local/bin, and the Chargen is there. However, it's again using the hard coded ruby path.
<leitz>
Is there a way to fix that?
<matthewd>
It's working correctly
<matthewd>
There's nothing to fix
<leitz>
It's hard coding a path, no way to make it use "/usr/bin/env ruby"?
<matthewd>
I'm not sure how else I can say it
<matthewd>
It is doing the right thing. There is not a way for you to break it.
bestel has quit [Quit: Page closed]
<leitz>
It is doing the expected thing. However, if someone wants to be able to use different ruby versions it is broken.
esObe_ has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
<Andrevan>
Try rvm or rbenv
slackR has quit [Ping timeout: 240 seconds]
elomatreb has quit [Quit: mep mep]
Pumukel has quit [Ping timeout: 240 seconds]
<matthewd>
If someone is using a ruby version switcher, they'll be managing their bin directories appropriately
<leitz>
Even though it's classed as a string, it looks like: ["Carli"] ["Ray"]
elomatreb has joined #ruby
<leitz>
This has the same result: new_name = f_name + " " + l_name
Pumukel has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<leitz>
Tried join but it failed.
<leitz>
The string itself includes the brackets and quotes.
nightfog has quit [Ping timeout: 256 seconds]
<leitz>
Is there a better solution than gsub?
psychicist__ has quit [Ping timeout: 264 seconds]
psychicist__ has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
<adam12>
leitz: I bet it is a string, but your call to `to_s` was somehow mangled by SQLite3, which turned a single element array into a string that looked like a single element array
<adam12>
leitz: Tho I don't use SQLite3 directly (normally through Sequel) so I'd say I'm guessing at this.
d0nn1e has joined #ruby
Pumukel has joined #ruby
Fernando-Basso has quit [Ping timeout: 240 seconds]
<darix>
leitz: i am sure those are arrays.
conta has quit [Quit: conta]
jenrzzz has joined #ruby
<leitz>
darix, if I "puts f_name.class" it comes back as a string. I can use /[[:alpha:]]+/.match(first_name(gender,species)) in line 74 to pull out the string.
<adam12>
leitz: how about last_name[0].to_s (line 69)
<leitz>
They *look* like arrays...
<adam12>
or last_name.first.to_s
<leitz>
adam12, you are too cool!
<leitz>
the last_name[0] works.
<adam12>
I bet to_s is calling inspect internally, which turns ["Some Name"] into "[\"Some Name\"]"
kalib has joined #ruby
<kalib>
Hello guys. I am receiving the error: Could not find RedCloth-4.2.9 in any of the sources
<kalib>
Run `bundle install` to install missing gems.
<ruby[bot]>
kalib: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<adam12>
kalib: Kinda hacky, but on line 55 and 56, insert `bundle-2.1 exec` before the commands. so `system "bundle-2.1 exec original-string-here"`
Pumukel has quit [Ping timeout: 240 seconds]
<kalib>
ok.. let me give it a try..
Pumukel has joined #ruby
enterprisey has joined #ruby
Rodya_ has joined #ruby
<kalib>
adam12: did it and tried to run rake-2.1 generate
<kalib>
I need to give the full path for jekyll and compass
<kalib>
since it's not finding it.
<kalib>
let me try
millerti has joined #ruby
<adam12>
kalib: Unfortunately I think you have some weird problems with your Ruby.
<adam12>
But you might get lucky by changing to full path.
tenderlove has quit [Read error: Connection reset by peer]
<adam12>
"NoMethodError: undefined method `activate_bin_path' for Gem:Module" <!-- this error stinks.
tenderlo_ has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<allisio>
Is there some incantation to make String#unpack handle "leftovers"?
workmad3 has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
<kalib>
adam12: I tried giving /usr/bin/jekyll and the same for compass... didn't work.. than I trie dto give /opt/ruby2.1/bin/jekyll and the same for compass.. and got..
<adam12>
My suggestion, albeit maybe unpopular, is to abandon that version of Jekyll for something much more recent - not something I can assist with tho.
<kalib>
that's a valid point.. I'll check how can I do that.
<workmad3>
kalib: looks like that gem won't work on ruby 2.4
<allisio>
Not that version, anyway.
<allisio>
They fixed it in 1.3.
<workmad3>
kalib: as it's trying to use Fixnum in a C extension, and that class got removed in 2.4
<kalib>
yes..when I run just gem install yajl-ruby
<kalib>
it works..
<kalib>
and I receive 1 gem installed
<kalib>
how can I see which version I have installed?
esObe_ has quit [Ping timeout: 240 seconds]
<allisio>
`gem -v foo`
<kalib>
ok.. 2.6.8
<kalib>
how can I tell to this project that that's the version I should look for?
<kalib>
any idea?
psychicist__ has quit [Ping timeout: 240 seconds]
<workmad3>
allisio: that gives the rubygems version, not the installed gem versions
<allisio>
workmad3: Is `foo` not a placeholder anymore?
<workmad3>
kalib: `gem list -l <foo>`
<workmad3>
allisio: no, I mean `gem -v` only gives the rubygems version
<allisio>
Oh, you're right. Sorry.
<workmad3>
doesn't matter about the placeholder
<kalib>
$ gem list -l yajl-ruby
<kalib>
*** LOCAL GEMS ***
<kalib>
yajl-ruby (1.3.0)
Pumukel has quit [Ping timeout: 240 seconds]
tenderlove has quit [Remote host closed the connection]
Pumukel has joined #ruby
raul782 has quit [Ping timeout: 260 seconds]
<workmad3>
kalib: so, as expected, you have 1.3.0, which makes sense as 1.1.0 won't install on ruby 2.4.0
tenderlove has joined #ruby
__Yiota has joined #ruby
<kalib>
workmad3: I just need this octopress project to work with it.
<workmad3>
kalib: any reason you're trying to force it on ruby 2.4? Things would probably work easier on 2.3
<kalib>
workmad3: no reason.. that's the default ruby version for my arch system
<kalib>
that's why
ddffg has quit [Quit: Leaving]
<kalib>
can I change that?
<workmad3>
probably... not used arch much though
<allisio>
kalib: I recomend chruby + ruby-install.
<kalib>
don't get it
<workmad3>
kalib: you could also try `bundle update yajl-ruby` in the project... but that runs the risk that the project won't work with the updated version
<elomatreb>
leitz: Two things: You can't initialize instance (not class!) variables like that (See here: https://eval.in/753027)
mostlybadfly has joined #ruby
atmosx has joined #ruby
<elomatreb>
Uh, I guess that's one thing. learn2countpls
kalib has quit [Quit: WeeChat 1.4]
<adaedra>
There are 2 hard things in programming: naming things, cache invalidation, and off-by-one errors.
* leitz
chuckles
milardovich has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd>
The second thing would be "don't use class variables".. but you're not, so that's okay :)
<leitz>
Well, I'm trying to set the child class array and then call a parent class method using the child class array. Obviosly I'm missing something.
Pumukel has quit [Ping timeout: 264 seconds]
lxsameer has quit [Quit: WeeChat 1.6]
hutch34 has joined #ruby
Pumukel has joined #ruby
* leitz
erases the second @ before matthewd notices...
<allisio>
leitz: You need a Firster#initialize.
<elomatreb>
https://eval.in/753029 -- This shows why your attempt doesn't work as expected
<allisio>
As it stands, you're setting an instance variable on the Firster class, not an instance thereof.
<leitz>
Ah....that works.
<elomatreb>
Ruby classes are objects too, instances of the class `Class` in fact
<matthewd>
.. which seems like it might be what you intend. You just need to read it from the same place.
sid_fules has joined #ruby
<allisio>
leitz: This is in line with what matthewd is suggesting: https://eval.in/753030
<allisio>
You'd have to get your hands unnecessarily dirty if you really want it to be a class-level instance variable.
<elomatreb>
I'd probably just define a method that just returns that array
<leitz>
The entire process is to create an object that modified another object. So there are lots of variables to be set, depending on the sub-class.
DaleK5whr has joined #ruby
<leitz>
The varaibles will only be used inside the class activities, if that makes sense.
DaleK5whr has left #ruby [#ruby]
<leitz>
And porting the "def initialize" suggestion into the code works. Yay!
agent_white has joined #ruby
<allisio>
It's not what you actually want, though.
<allisio>
Why should all Firster instances use a different @skill_options Array that contains the same data?
acalycine has quit [Read error: No route to host]
Silthias has joined #ruby
<leitz>
allisio, the Firster would only get initialized once, but another career like "Marine" might also get initialized. Both would have @skill_options, but they would be different.
<allisio>
leitz: You're only gonna have a single Firster? Then why is it a Class?