Guest90 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Quit: WeeChat 2.0.1]
bronson has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
bronson has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
TomyLobo has quit [Ping timeout: 256 seconds]
veduardo has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
leitz has quit [Quit: Nappy time]
rrutkowski has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
milardovich has joined #ruby
ferr1 has joined #ruby
jtdoncas_ has joined #ruby
milardov_ has quit [Ping timeout: 248 seconds]
randomstrangerb has quit [Ping timeout: 256 seconds]
ferr1 has left #ruby [#ruby]
workmad3 has joined #ruby
randomstrangerb has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
ResidentBiscuit has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
dogweather has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 248 seconds]
arescorpio has joined #ruby
jenrzzz has joined #ruby
quobo has quit []
pastorinni has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
ogres has joined #ruby
mtkd has joined #ruby
k0mpa has quit [Remote host closed the connection]
jnyw has joined #ruby
bronson has joined #ruby
ResidentBiscuit has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
milardov_ has joined #ruby
pastorinni has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 252 seconds]
ResidentBiscuit has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 256 seconds]
ResidentBiscuit has joined #ruby
jenrzzz has joined #ruby
marr has quit [Ping timeout: 276 seconds]
venmx has quit [Ping timeout: 240 seconds]
mluts has joined #ruby
mluts has quit [Client Quit]
mluts has joined #ruby
mluts has quit [Remote host closed the connection]
ptr4ce has joined #ruby
Ishido has quit [Ping timeout: 248 seconds]
ResidentBiscuit has quit [Read error: Connection reset by peer]
Ishido has joined #ruby
vichib has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
milardovich has joined #ruby
nowhere_man has joined #ruby
milardov_ has quit [Ping timeout: 246 seconds]
nowhereman_ has quit [Ping timeout: 256 seconds]
dogweather has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
bmurt has joined #ruby
ResidentBiscuit has quit [Read error: Connection reset by peer]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Read error: Connection reset by peer]
bronson has joined #ruby
dogweather has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 268 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 256 seconds]
cdg has joined #ruby
gizmore has joined #ruby
dogweather has joined #ruby
coderphive has quit [Ping timeout: 248 seconds]
mluts has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
gizmore|2 has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
coderphive has joined #ruby
milardov_ has joined #ruby
workmad3 has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
dogweather has quit [Ping timeout: 256 seconds]
mluts has quit [Quit: mluts]
mluts has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
millerti has quit [Ping timeout: 248 seconds]
BTRE has quit [Read error: Connection timed out]
BTRE has joined #ruby
cadillac_ has joined #ruby
Psybur_ has quit [Ping timeout: 246 seconds]
jtdoncas_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 240 seconds]
arescorpio has quit [Excess Flood]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
jtdoncas_ has joined #ruby
dogweather has joined #ruby
mtkd has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
ptr4ce has quit [Remote host closed the connection]
mtkd has joined #ruby
jtdoncas_ has quit [Ping timeout: 260 seconds]
dogweather has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
ogres has quit [Quit: Connection closed for inactivity]
roshanavand has joined #ruby
<nchambers>
if I have a class Foo, with a class variable @@bar, how can I expose bar so that I can use it like Foo.bar[:some_key] = 'some value'
milardovich has joined #ruby
roshanavand has quit [Quit: Leaving.]
roshanavand has joined #ruby
milardov_ has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Quit: AJA4350]
<mattwc>
nchambers: set a cattr_accessor / attr_accessor?
<nchambers>
mattwc: Is there a document that describes that? I haven't really ever used ruby extensively enough so im not familiar with a lot of its class concepts
raynold has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
rabajaj has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
elphe has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
rahul_bajaj has quit [Ping timeout: 248 seconds]
tomphp has quit [Client Quit]
mtkd has quit [Ping timeout: 256 seconds]
milardov_ has joined #ruby
mtkd has joined #ruby
yohji has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
xuyuheng_ has joined #ruby
za1b1tsu has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
ldnunes has joined #ruby
alfiemax has quit [Remote host closed the connection]
yohji has joined #ruby
xuyuheng_ has quit [Quit: Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
venmx has quit [Remote host closed the connection]
venmx has joined #ruby
stoffus has quit [Read error: Connection reset by peer]
stoffus has joined #ruby
Neptu_ has joined #ruby
Ishido has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
Ishido has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
workmad3 has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
jenrzzz has joined #ruby
AJA4350 has joined #ruby
jtdoncas_ has joined #ruby
c0ncealed has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
c0ncealed has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jtdoncas_ has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ClearsTheScreen>
hello rubies :) i'm running into a problem trying to use a library that, in turn, uses sassc. i get this error: https://pastebin.com/9Bvtp0Yr . i'm doing this on windows (which likely is a factor) googling around yields a few search results ( https://github.com/sass/libsass/issues/1790 ), but they all appear to be either fixed a long time ago or not actually applicable (cf. the error message; unicodey garble in my instance). ...
<ruby[bot]>
ClearsTheScreen: 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
<ClearsTheScreen>
... the library/tool i am trying to use is the "zendesk application tools" ( https://rubygems.org/gems/zendesk_apps_tools which pulls in sassc via the `zendesk_apps_support` dependency). I have inspected the libsass.so file in a hex editor and it presents as windows DLL ("MZ") and not as linux one ("ELF"). Any help how to figure out what this error means / how i can fix it would be appreciated.
<Burgestrand>
ClearsTheScreen a shot in the dark here, is it possible libsass is compiled for e.g. 32bit (x86) but your ruby is 64bit (x64), or vice versa?
jenrzzz has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
Ishido has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
bronson has joined #ruby
<ClearsTheScreen>
! that is a good shout. thanks, i'll have a look.
Ishido has joined #ruby
<xhoy>
ClearsTheScreen: and it runs under windows it could be that this is not compatible
bronson has quit [Ping timeout: 246 seconds]
<xhoy>
ClearsTheScreen: you could try windows 10 linux subsystem
<xhoy>
*maybe* that could help/work
jenrzzz has quit [Ping timeout: 264 seconds]
<ClearsTheScreen>
xhoy: well it is a windows dell ("MZ") not a linux shared library ("ELF")
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ClearsTheScreen>
s/dell/dll/
<xhoy>
'C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sassc-1.11.4/ext/libsass/lib/libsass.so is that file present?
emilkarl_away is now known as emilkarl
<xhoy>
since it says cannot open, sounds like a permission error OR file missing corrupt thing
<ClearsTheScreen>
yes; i could read and inspect it.
<ClearsTheScreen>
hence me saying I have checked it is a windows library
<xhoy>
yeah but it is there? and does the process have permissions to open it?
<ClearsTheScreen>
if it's not there, how can i inspect it? :x i also said "yes" re: is it present.
<ClearsTheScreen>
and, uh, i hope so; i'll check the file perms
<ClearsTheScreen>
i'd have epxected something more telling than "bit garbage" as error message :x
<xhoy>
i mean why wouldn't it say it isn't there when it is? :P
<ClearsTheScreen>
because it doesn't say it isn't there.
<ClearsTheScreen>
the file appears to have read permissions fro all users on the machine; should be fine
<xhoy>
rename the file see if you get an other rror
jenrzzz has joined #ruby
<xhoy>
IT could be that it just isn't windows compatible and is including something else (dunno?)
Silthias has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
tvw has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
stormpack has joined #ruby
<ClearsTheScreen>
hump me sideways, it compiled a 32 bit dll.
<ClearsTheScreen>
thanks, Burgestrand!
<ClearsTheScreen>
and xhoy as well :)
<lupine>
µnf
<desperek>
nani's wrong?
<ClearsTheScreen>
lupine: :D
<Burgestrand>
ClearsTheScreen :)
John_Ivan has joined #ruby
<Burgestrand>
ClearsTheScreen had a similar issue in the past for raspberry pi with one of my own gems and libffi, with a very similar error
<ClearsTheScreen>
Burgestrand: oh, curious. are there obvious solutions? :x i'm quite new to ruby, let's say.
cdg has joined #ruby
<desperek>
btw
<Burgestrand>
ClearsTheScreen well, windows is a different build system so I can't really say, but compiling something for the wrong architecture and then attempting to load it with ffi (which is what libsass does afaik, looking at your error trace) and will only say "can't load" as its error message
<desperek>
what's the current state of rubygems, ruby 2.4 on win10?
jenrzzz has joined #ruby
<desperek>
cause i know some of gems didnt compile the right way/didnt work on 2.4 on win10
<ClearsTheScreen>
Burgestrand: i mean, i very much understand it'll fall flat, but it's like a 3rd order dependency where it fails; so i was wondering if there are obvious command line options or so to give to gem
<desperek>
mysql2 for example
<ClearsTheScreen>
i seem to currently run 2.3.1; is that affected too?
<desperek>
ClearsTheScreen, if you refer to mysql2 on win10, then 4.10 works on 2.3, but not on 2.4
<desperek>
i've heard that win10 ruby 2.4 support will be introduced if mysql2 5 will be released
<desperek>
:/
<desperek>
meanwhile there is ruby 2.5
<desperek>
i guess i'll be best using vagrant?
cdg has quit [Ping timeout: 252 seconds]
<desperek>
also note that rvm doesnt work on windows
<ClearsTheScreen>
desperek: more along the lines of: you mention this being about ruby 2.4; i was wondering if those compilation issues where specific to .4, or if i might be affected by that too
<desperek>
ClearsTheScreen, specific to 2.4 and up or just 2.4
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
veduardo_ has joined #ruby
jtdoncas_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
tcopeland has joined #ruby
schneide_ has joined #ruby
jtdoncas_ has quit [Ping timeout: 256 seconds]
<schneide_>
Hi. I'm trying to use libsass with rails, using this gem https://github.com/sass/sassc-rails. Currently I'm using rails 3.2.22 and bundle install fails because sassc-rails depends on rails version over 4.0.0
<schneide_>
Is there an alternative or a work around? sorry I'm new to ruby
apeiros has joined #ruby
chmuri has quit [Excess Flood]
shinnya has joined #ruby
<adaedra>
You could try to use a previous version of the gem
Psybur_ has joined #ruby
chmurifree has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
apeiros has quit [Read error: Connection reset by peer]
milardov_ has joined #ruby
apeiros has joined #ruby
goatish has joined #ruby
synthroid has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
stormpack has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bronson has joined #ruby
Ellusionist has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
rwb has quit [Ping timeout: 252 seconds]
RougeT430 has quit [Ping timeout: 256 seconds]
plexigras has quit [Quit: WeeChat 2.0.1]
aupadhye has quit [Ping timeout: 255 seconds]
plexigras has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
ptr4ce has joined #ruby
bmurt has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
CrazyEddy has quit [Remote host closed the connection]
RougeT430 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tomphp has joined #ruby
aScottishBoat has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
aupadhye has joined #ruby
RougeT430 has quit [Ping timeout: 256 seconds]
nadir has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
mikkelsen has joined #ruby
milardov_ has quit [Ping timeout: 248 seconds]
mikkelsen has quit [Client Quit]
aScottishBoat has quit [Ping timeout: 256 seconds]
aScottishBoat has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
aScottishBoat has quit [Client Quit]
jtdoncas_ has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
aScottishBoat has joined #ruby
quobo has joined #ruby
RougeT430 has joined #ruby
Azure has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
mikkelsen has joined #ruby
jtdoncas_ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
sieve has joined #ruby
aScottishBoat has quit [Ping timeout: 240 seconds]
<sieve>
Hi, I'm trying to come up with a ruby regex that matches a string that is less than n characters
<adaedra>
It has to be a regex?
Asher has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
<ClearsTheScreen>
sounds like checking on string length is easier and faster
cdg has joined #ruby
dionysus69 has joined #ruby
tomphp has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
jeffreylevesque has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
bronson has joined #ruby
mark_66 has quit [Quit: Leaving.]
veduardo_ has quit [Ping timeout: 255 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 268 seconds]
jrp93 has joined #ruby
bmurt has joined #ruby
stormpack has quit [Quit: Leaving]
<ClearsTheScreen>
update just in case: my error was typical ID-10T error: looks like i installed 32 bit devkit. pebkac.
jrp93_2 has joined #ruby
krawchyk has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
cadillac_ has joined #ruby
<Burgestrand>
ClearsTheScreen glad you found the issue :)
jrp93 has quit [Ping timeout: 252 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
sergio_101 has joined #ruby
stormpack has joined #ruby
tomphp has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
synthroid has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 276 seconds]
kryptoz has joined #ruby
cadillac_ has joined #ruby
synthroid has joined #ruby
oleo has joined #ruby
mikkelsen has quit [Quit: mikkelsen]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve_ has joined #ruby
RougeT430 has quit [Ping timeout: 240 seconds]
jrp93_2 has quit [Quit: Leaving]
gnufied has joined #ruby
Snowy has joined #ruby
Psybur_ has quit [Ping timeout: 276 seconds]
jtdoncas_ has joined #ruby
jrp93 has joined #ruby
workmad3 has joined #ruby
Ellusionist has quit [Quit: Leaving]
apparition has quit [Quit: Bye]
RougeT430 has joined #ruby
pastorinni has joined #ruby
pastorinni has quit [Remote host closed the connection]
sergio_101 has quit [Remote host closed the connection]
pastorinni has joined #ruby
<ClearsTheScreen>
yes! :) cheers!
sergio_101 has joined #ruby
jtdoncas_ has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
emilkarl is now known as emilkarl_away
workmad3 has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
k0mpa has joined #ruby
emilkarl_away is now known as emilkarl
randomstrangerb has quit [Ping timeout: 264 seconds]
randomstrangerb has joined #ruby
griffindy has joined #ruby
griffindy has quit [Client Quit]
sundhell is now known as sundhell_away
rippa has joined #ruby
schneide_ has quit [Remote host closed the connection]
bronson has joined #ruby
Ltem has quit [Quit: bye]
ta_ has quit [Remote host closed the connection]
alex`` has joined #ruby
rwb has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
goatish has quit [Quit: Hibernating]
alfiemax has quit [Remote host closed the connection]
<cout>
why does the first call succeed but the second result in LocalJumpError?
nowhereman_ has joined #ruby
<Burgestrand>
dminuoso here's one of your favourites
<Burgestrand>
dminuoso :D
<cout>
we couldn't pass blocks into blocks when I first started using ruby
nowhere_man has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
foxxx0 has joined #ruby
<Burgestrand>
cout the `yield` is assumed to yield to a block passed to the scope of the calling site, e.g. if you wrap it in a method and call that method with a block, the yield would yield to that block
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bawNg>
yeah no reason to allocate a proc if you don't need it
schneide_ has joined #ruby
aufi has quit [Quit: Leaving]
<al2o3-cr>
indeed.
<bawNg>
passing yields through a few methods costs less than a single proc allocation under MRI
<al2o3-cr>
of course
<bawNg>
and that's excluding the GC cost that will be incurred later
<al2o3-cr>
yet i hardly see it in the real world.
<bawNg>
not sure why people get so confused about working with blocks and yield, I must just be far too used to using ruby blocks at this point
<al2o3-cr>
anything is easy when you come to terms with it.
<al2o3-cr>
it just takes time.
kapil___ has quit [Quit: Connection closed for inactivity]
schneide_ has quit [Ping timeout: 268 seconds]
<bawNg>
blocks are one of the most awesome parts of the ruby which I really miss in other languages, but doing pretty much anything in ruby is way more enjoyable than all the other languages that I use
<al2o3-cr>
i totally agree.
cdg has joined #ruby
<havenwood>
bawNg: The lazy proc allocation used in 2.5 really helps mitigate that proc allocation penatly
venmx has quit [Ping timeout: 268 seconds]
<bawNg>
you mean it finally avoids allocation when just passing through a block?
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneide_ has joined #ruby
hahuang61 has quit [Quit: WeeChat 2.0.1]
blackmesa1 has joined #ruby
ldnunes has quit [Quit: Leaving]
hahuang61 has joined #ruby
elphe has quit [Ping timeout: 276 seconds]
schneide_ has quit [Ping timeout: 240 seconds]
drakoz has joined #ruby
RougeT430 has joined #ruby
sameerynho has joined #ruby
schneide_ has joined #ruby
drakko has quit [Ping timeout: 264 seconds]
biberu has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
schneide_ has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
Psybur_ has quit [Ping timeout: 260 seconds]
zapata has quit [Read error: Connection reset by peer]
dionysus69 has quit [Remote host closed the connection]
zapata has joined #ruby
schneide_ has joined #ruby
dionysus69 has joined #ruby
Mia has joined #ruby
<cout>
dminuoso: I know; I wrote it that way because ruby doesn't have begin/end comment markers
<cout>
not for one-liners anyway
schneide_ has quit [Ping timeout: 248 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jamesaxl has quit [Quit: WeeChat 2.0.1]
rgiscard has joined #ruby
schneide_ has joined #ruby
xfbs has quit []
garyserj has joined #ruby
biberu has quit []
cagomez has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<garyserj>
what is the advantage in doing attr_accessor :myvar I can see an advantage in defining a getter method that does more than just return @myvar or defining a setter method that does more than just @myvar=value But what's the advantage in just having plain accessors and getters that just do reading and assigning as is done by doing attr_accessor :myvar?
schneide_ has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
Mia has quit [Quit: Leaving]
hahuang61 has quit [Ping timeout: 256 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
haylon_ has joined #ruby
drakoz has quit [Quit: xoxo]
<hanmac>
garyserj: in ruby normally you can't access instance variables from the outside of an object without meta stuff like instance_variable_get
alfiemax has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 256 seconds]
jinie has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
nowhereman_ has quit [Quit: Konversation terminated!]
nowhereman_ has joined #ruby
schneide_ has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
elphe has joined #ruby
RougeT430 has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Ping timeout: 248 seconds]
dviola has joined #ruby
gothicsouth has joined #ruby
naftilos76 has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby
cdg has joined #ruby
BTRE has quit [Quit: Leaving]
shadeslayer has quit [Read error: Connection reset by peer]
bronson has joined #ruby
banisterfiend has quit [Client Quit]
rwb has quit [Ping timeout: 240 seconds]
jinie_ has joined #ruby
banisterfiend has joined #ruby
shadeslayer has joined #ruby
RougeT430 has joined #ruby
sundhell is now known as sundhell_away
RougeT430 has quit [Max SendQ exceeded]
<garyserj>
are class variables also valled static variables?
<garyserj>
valled=called
RougeT430 has joined #ruby
jinie has quit [Ping timeout: 256 seconds]
RougeT430 has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Flashynuff has joined #ruby
<tobiasvl>
garyserj: not by rubyists ;)
jnollette has joined #ruby
<tobiasvl>
class variables are roughly analogous to "static" variables in other languages (but they're shared by a class and all its subclasses!). however, they're not used much. class instance variables are more common
<garyserj>
so are there three kinds then. class variables, instance variables, and class instance variables?
schneide_ has quit [Remote host closed the connection]
randomstrangerb has quit [Ping timeout: 252 seconds]
randomstrangerb has joined #ruby
schneide_ has joined #ruby
wolfshappen has quit [Ping timeout: 248 seconds]
jtdoncas_ has joined #ruby
RougeT430 has joined #ruby
jottr_ has joined #ruby
<havenwood>
What should Threadlets be called in Ruby? Threadlet, Routine, Task, ThreadTask, LightThread, Lane, Spark, or what?: https://bugs.ruby-lang.org/issues/13618
pastorinni has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<havenwood>
garyserj: There are local variables, class instance variables (most often called just instance variables), class variables, global variables, private constants and public constants.
<havenwood>
garyserj: Good general advice is avoid creating your own class variables or global variables.
<havenwood>
garyserj: You'll almost exclusively use local and instance variables or constants.
wolfshappen has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<havenwood>
Help pick a good name so we can get Threadlets already! ;-)
<havenwood>
I think "Threadlet" is fine actually.
<havenwood>
Better than Fred or Thriber, at least...
BTRE has joined #ruby
Psybur_ has joined #ruby
<tobiasvl>
garyserj: instance variables and class instance variables are the same thing, but the former belong to any instance and the latter to an instance that is a class
Psybur__ has joined #ruby
shadeslayer has quit [Remote host closed the connection]