gemmaro_ has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
gemmaro has joined #ruby
szkl has joined #ruby
Sampersand has quit [Quit: Client closed]
wnd-conn is now known as wnd
<nakilon>
image I have a class with a method that is need to be split into one common, inherited half, and one custom for each interitant; there are two ways to make this, which should I chose? https://dpaste.com/23LNV4B4S
TomyWork has joined #ruby
hwpplayer1 has quit [Ping timeout: 260 seconds]
grenierm has quit [Quit: Client closed]
JulioPapel has joined #ruby
JulioPapel has quit [Quit: JulioPapel]
konsolebox has joined #ruby
brw has quit [Ping timeout: 248 seconds]
MyNetAz has quit [Remote host closed the connection]
<mange>
Is this just for code reuse, or is your "Base" a sensible concept, with a meaningful "is a" relationship with A and B?
<mange>
If it's just for reuse: use a module and include it (which isn't one of your options). If there's a meaningful concept, then I would define method x on base, and then override it in the subclasses (calling super before doing their own work).
mange has quit [Quit: Zzz...]
konsolebox has quit [Quit: .]
MyNetAz has joined #ruby
konsolebox has joined #ruby
svm has joined #ruby
svm has quit [Remote host closed the connection]
svm has joined #ruby
msv has quit [Ping timeout: 272 seconds]
svm is now known as msv
konsolebox_ has joined #ruby
konsolebox has quit [Ping timeout: 244 seconds]
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 245 seconds]
rvalue- is now known as rvalue
snonux has quit [Ping timeout: 272 seconds]
donofrio_ has joined #ruby
donofrio_ has quit [Ping timeout: 272 seconds]
user71 has joined #ruby
s-liao-200 has joined #ruby
hwpplayer1 has joined #ruby
s-liao-200 has quit [Quit: Client closed]
dannyAAM has joined #ruby
r2ro has joined #ruby
R2robot has quit [Ping timeout: 276 seconds]
jasfloss has quit [Ping timeout: 276 seconds]
infinityfye has joined #ruby
jasfloss has joined #ruby
Guest64 has joined #ruby
rvalue has quit [Remote host closed the connection]
rvalue has joined #ruby
r2ro is now known as R2robot
Guest64 has quit [Killed (ozone (No Spam))]
Guest64 has joined #ruby
Guest64 has quit [Killed (ozone (No Spam))]
Thanzex02 has joined #ruby
eddof13 has joined #ruby
Guest64 has joined #ruby
konsolebox_ has quit [Ping timeout: 276 seconds]
szkl has quit [Quit: Connection closed for inactivity]
Guest64 has quit [Quit: Client closed]
Guest64 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
Guest64 has quit [K-Lined]
rvalue has joined #ruby
Rounin has quit [Ping timeout: 260 seconds]
Sampersand has joined #ruby
konsolebox has joined #ruby
Rounin has joined #ruby
konsolebox has quit [Quit: .]
donofrio_ has joined #ruby
donofrio_ has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
R2robot has quit [Ping timeout: 248 seconds]
donofrio has quit [Ping timeout: 276 seconds]
brw has joined #ruby
donofrio has joined #ruby
infinity__fye has joined #ruby
infinity__fye has quit [Read error: Connection reset by peer]
infinityfye has quit [Ping timeout: 252 seconds]
o0x1eef has quit [Quit: Quit]
polishdub has quit [Ping timeout: 245 seconds]
donofrio has quit [Ping timeout: 252 seconds]
R2robot has joined #ruby
R2robot has quit [Ping timeout: 276 seconds]
dstein64- has joined #ruby
dstein64 has quit [Ping timeout: 265 seconds]
dstein64- is now known as dstein64
R2robot has joined #ruby
MyNetAz has quit [Remote host closed the connection]
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
MyNetAz has joined #ruby
donofrio has joined #ruby
Sampersand has quit [Quit: Client closed]
Inline has quit [Quit: Leaving]
donofrio has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
cappy has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
dviola has joined #ruby
snonux has joined #ruby
donofrio has joined #ruby
cappy has quit [Quit: Leaving]
R2robot has quit [Quit: Pull the lever, Kronk. Wrong leverrrrrrr!]
snonux has quit [Ping timeout: 265 seconds]
grenierm has joined #ruby
hwpplayer1 has quit [Quit: Thanks talk to you later]
donofrio has quit [Ping timeout: 245 seconds]
donofrio has joined #ruby
eoli3n has quit [Remote host closed the connection]
eoli3n has joined #ruby
eoli3n has quit [Remote host closed the connection]
eoli3n has joined #ruby
user71 has quit [Quit: Leaving]
Linux_Kerio has quit [Ping timeout: 260 seconds]
donofrio has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
<nakilon>
including it via module is applicable for both ways, it does not decide anything
<nakilon>
I solved it by noticing that in the end the method creates an instance of another class, so I've shoved one half into the 'initialize' and another half of code is now being passed as a this or that custom block
denvermullets has joined #ruby
R2robot has joined #ruby
r3m has quit [Quit: WeeChat 4.6.0-dev]
r3m has joined #ruby
Milos_ has quit [Ping timeout: 252 seconds]
nmollerup has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
Milos has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<havenwood>
Sampersand: Still open at least... Any discouraging update or just the holding pattern?
Perflosopher03 has quit [Ping timeout: 260 seconds]
Inline has joined #ruby
denvermullets has quit [Ping timeout: 252 seconds]
denvermullets has joined #ruby
denvermullets has quit [Ping timeout: 252 seconds]