niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
Rounin has joined #ruby
niv has quit [Client Quit]
niv has joined #ruby
<saba_sedigh> hello
<saba_sedigh> what is jruby?
<newton> java implementation of ruby
Rounin has quit [Ping timeout: 258 seconds]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
postmodern has quit [Remote host closed the connection]
luc117_ has quit []
postmodern has joined #ruby
<saba_sedigh> newton: what do you mean? writing a similar language like ruby in java?
<newton> saba_sedigh, if you think about how ruby is written in C, jruby is ruby written in Java and run on the JVM
<havenwood> saba_sedigh: With C, C++, D, et al., you can use different compilers. With Ruby, Python, Closure, et al., you can use different virtual machines.
<havenwood> Same language running on a different platform.
niv has joined #ruby
ur5us has joined #ruby
Garb0 has quit [Quit: Garb0]
<rg> D? is that still a thing?
mrkz_c has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 272 seconds]
Tempesta has quit [Ping timeout: 245 seconds]
cdolan has quit [Ping timeout: 252 seconds]
Tempesta has joined #ruby
lad_ has quit [Ping timeout: 244 seconds]
pwnd_sfw4 has joined #ruby
pwnd_sfw has quit [Ping timeout: 252 seconds]
pwnd_sfw4 is now known as pwnd_sfw
lad_ has joined #ruby
kssm has quit [Quit: Lost terminal]
mrkz_c has joined #ruby
reset has quit [Quit: reset]
willthechill has quit [Ping timeout: 250 seconds]
pwnd_sfw has quit [Ping timeout: 258 seconds]
pwnd_sfw has joined #ruby
Rounin has joined #ruby
dvgorod has joined #ruby
lad_ has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
ur5us has joined #ruby
dvgorod has quit [Ping timeout: 258 seconds]
gr33n7007h has joined #ruby
rodd has quit [*.net *.split]
FastJack has quit [*.net *.split]
leftylink has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
miah has quit [*.net *.split]
cout has quit [*.net *.split]
ged has quit [*.net *.split]
cout has joined #ruby
leftylink has joined #ruby
miah has joined #ruby
FastJack has joined #ruby
rodd has joined #ruby
ged has joined #ruby
markmarkmark has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
nakilon has quit [*.net *.split]
tweaks has quit [*.net *.split]
nakilon has joined #ruby
tweaks has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
gr33n7007h has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
<nakilon> how do I create a struct instance passing args to initializer but avoiding them being also applied to defined struct attributes?
<nakilon> for example I have the first struct attribute to become an instance variable, not an externally readable struct field
gr33n7007h has quit [Read error: Connection reset by peer]
<nakilon> I guess I just should not use the Struct#new(my_secret_attr_value) for initial creation then
ur5us has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
<nakilon> but hmmm... I need to use it in initialize
<nakilon> >> Struct.new(:a) do ; def initialize ; instance_variable_set :@b, @@c end end.tap{ |_| _.class_variable_set :@@c, 1 }.new.instance_variable_get :@b
<ruby[bot]> nakilon: # => (https://carc.in/#/r/bfpu)
<nakilon> bot (
<nakilon> the problem now is in @@c -- how do I access that anonymous struct eigenclass variable @@c ?
<nakilon> not sure even where I put it in though, lol
<nakilon> oh I guess this is it
<nakilon> >> Struct.new :a do ; @@c = 1 ; def initialize ; instance_variable_set :@b, @@c end end.new.instance_variable_get :@b
<ruby[bot]> nakilon: # => class variable access from toplevel (RuntimeError) (https://carc.in/#/r/bfpv)
<nakilon> but these warnings...
<nakilon> >> Struct.new :a do ; class_variable_set :@@c, 1 ; def initialize ; @b = @@c end end.new.instance_variable_get :@b
<ruby[bot]> nakilon: # => class variable access from toplevel (RuntimeError) (https://carc.in/#/r/bfpw)
<nakilon> this only removed one warning out of two
<nakilon> >> Struct.new :a do ; class_variable_set :@@c, 1 ; def initialize ; @b = self.class.class_variable_get(:@@c) end end.new.instance_variable_get :@b
<ruby[bot]> nakilon: # => 1 (https://carc.in/#/r/bfpx)
sdfuiojklqaz has joined #ruby
<nakilon> oh probably better like this
<nakilon> >> Struct.new :a do ; instance_variable_set :@c, 1 ; def initialize ; @b = self.class.instance_variable_get(:@c) end end.new.instance_variable_get :@b
<ruby[bot]> nakilon: # => 1 (https://carc.in/#/r/bfpy)
<nakilon> what would @@c trying to access
<nakilon> this I don't understand
sdfuiojklqaz has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
Nik- has joined #ruby
<nakilon> is there any light analogue of nokogiri? some small pure ruby library that doesn't aim to parse everything in the world but to do a simple tasks
RougeR has joined #ruby
<adam12> Rexml?
Garb0 has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
weaksauce has quit [Ping timeout: 265 seconds]
<nakilon> oh I thought it's binding to C
<nakilon> anyway oga provides CSS selector, rexml doesn't
gr33n7007h has quit [Quit: WeeChat 3.2]
gr33n7007h has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
RougeRR has joined #ruby
RougeRR has quit [Client Quit]
RougeR has joined #ruby
RougeR has quit [Remote host closed the connection]
lunarkitty has quit [Quit: Connection closed for inactivity]
RougeR has joined #ruby
Xeago has joined #ruby
sleeeeping has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
RougeRR has joined #ruby
RougeRR has quit [Remote host closed the connection]
RougeR has joined #ruby
RougeR has quit [Remote host closed the connection]
RougeR has joined #ruby
Guest33 has joined #ruby
sleeeeping has quit [Ping timeout: 268 seconds]
saba_sedigh has quit [Ping timeout: 252 seconds]
saba_sedigh has joined #ruby
sleeeeping has joined #ruby
drincruz_ has joined #ruby
cdolan has joined #ruby
drincruz_ has quit [Ping timeout: 268 seconds]
aeris- has joined #ruby
_aeris_ has quit [Ping timeout: 244 seconds]
RougeRR has joined #ruby
RougeR has quit [Read error: Connection reset by peer]
reset has joined #ruby
<nakilon> btw, ended up about the attribute like this: https://dpaste.org/pUbp/slim
sleeeeping has quit [Ping timeout: 272 seconds]
RougeRR has quit [Remote host closed the connection]
willthechill has joined #ruby
Guest33 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdolan has quit [Ping timeout: 268 seconds]
cdolan has joined #ruby
Guest33 has joined #ruby
Guest33 has quit [Client Quit]
lucf117 has joined #ruby
Garb0 has quit [Ping timeout: 265 seconds]
Garb0 has joined #ruby
sleeeeping has joined #ruby
Guest33 has joined #ruby
lad has joined #ruby
FetidToot has quit [Ping timeout: 265 seconds]
mrkz_c has joined #ruby
tungki has joined #ruby
FetidToot has joined #ruby
root1 has quit [Quit: WeeChat 2.9]
sleeeeping has quit [Ping timeout: 258 seconds]
aeris- has quit [Ping timeout: 244 seconds]
Garb00 has joined #ruby
unyu has joined #ruby
Garb0 has quit [Ping timeout: 272 seconds]
Nik- has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Nik- has joined #ruby
Nik- has quit [Client Quit]
_aeris_ has joined #ruby
sagax has quit [Remote host closed the connection]
tungki has quit [Ping timeout: 246 seconds]
MachinShin has joined #ruby
lunarkitty has joined #ruby
lucf117 has joined #ruby
lucf117 has quit [Changing host]
lucf117 has quit [Quit: Leaving]
lucf117 has joined #ruby
weaksauce has joined #ruby
glider has joined #ruby
Guest33 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elf_fortrez has joined #ruby
Garb000 has joined #ruby
Garb00 has quit [Ping timeout: 272 seconds]
elf_fortrez has quit [Quit: Client closed]
ur5us has joined #ruby
pwnd_sfw5 has joined #ruby
pwnd_sfw has quit [Ping timeout: 268 seconds]
pwnd_sfw5 is now known as pwnd_sfw
factor has quit [Read error: Connection reset by peer]
factor has joined #ruby
entel_ has quit [Quit: Connection closed for inactivity]
Garb000 has quit [Ping timeout: 268 seconds]
Garb000 has joined #ruby
finsternis has quit [Ping timeout: 258 seconds]
mrkz_c has quit [Quit: Connection closed for inactivity]
Garb000 has quit [Ping timeout: 252 seconds]
Garb000 has joined #ruby
finsternis has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
cdolan has quit [Quit: WeeChat 3.0.1]
Rounin has quit [Remote host closed the connection]
entel_ has joined #ruby
easbarbosa has joined #ruby