00:00
<
phaul >
one is for lexical nesting of modules diregarding any relation of objects the other is all about relating objects disregarding layout of code.
00:01
<
xco >
i’ll need to peruse the documentation
00:02
<
xco >
what would be the “other direction” to #ancestors then?
00:02
<
phaul >
module A ; module B; end ; end. means A and B has no relation to each other whasoever apart from B is lexically layed out in the code of A
00:04
<
xco >
ooooo ok now i get it
00:04
<
xco >
this has nothing to do with inheritance
00:05
<
xco >
as would have been the case with #ancestors
00:05
<
xco >
it’s just like namespacing
00:05
<
xco >
for this one module A ; module B; end ; end.
00:05
<
xco >
like “folders” nested
00:10
lucasb has quit [Quit: Connection closed for inactivity]
00:10
beefjoe has joined #ruby
00:10
beefjoe has quit [Client Quit]
00:11
beefjoe has joined #ruby
00:12
beefjoe has quit [Client Quit]
00:12
<
al2o3-cr >
&>> module A module B module C Module.nesting end end end # xco your probably looking for this
00:12
Kestrel-029 has quit [Ping timeout: 245 seconds]
00:13
Nicmavr has joined #ruby
00:13
<
al2o3-cr >
by the definition of your question
00:13
<
al2o3-cr >
but if Module.constants is what you need, np
00:14
i1nfusion has quit [Remote host closed the connection]
00:15
i1nfusion has joined #ruby
00:16
<
xco >
al2o3-cr: no i was looking for #constants :)
00:16
jgpawletko has joined #ruby
00:16
jgpawletko has quit [Client Quit]
00:16
<
al2o3-cr >
xco: yeah, no worries ;)
00:18
Swyper has joined #ruby
00:27
orbyt_ has joined #ruby
00:28
cnsvc has joined #ruby
00:32
jenrzzz has joined #ruby
00:36
braincrash has quit [Ping timeout: 245 seconds]
00:37
jenrzzz has quit [Ping timeout: 246 seconds]
00:41
crankharder has joined #ruby
00:42
braincrash has joined #ruby
00:42
xco has quit [Quit: xco]
00:45
xco has joined #ruby
00:46
Exuma has joined #ruby
00:48
altigraph has joined #ruby
00:54
jenrzzz has joined #ruby
00:58
jenrzzz has quit [Ping timeout: 244 seconds]
00:59
jenrzzz has joined #ruby
00:59
espinet has joined #ruby
01:04
jenrzzz has quit [Ping timeout: 245 seconds]
01:05
jenrzzz has joined #ruby
01:06
crankharder has quit [Ping timeout: 255 seconds]
01:08
shansen has joined #ruby
01:10
espinet has quit [Quit: espinet]
01:10
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:12
Nicmavr has quit [Ping timeout: 245 seconds]
01:12
Nicmavr has joined #ruby
01:13
jenrzzz has quit [Ping timeout: 258 seconds]
01:17
planigan has quit [Ping timeout: 255 seconds]
01:17
brool has quit [Ping timeout: 258 seconds]
01:18
jgpawletko has joined #ruby
01:18
konrados has left #ruby ["Leaving"]
01:18
crankharder has joined #ruby
01:23
waheedi has quit [Quit: waheedi]
01:23
jenrzzz has joined #ruby
01:23
crankharder has quit [Ping timeout: 246 seconds]
01:24
minimal_life has quit [Quit: ZZZzzz…]
01:25
weteamsteve has quit [Ping timeout: 252 seconds]
01:25
dar123 has joined #ruby
01:26
Swyper has quit [Remote host closed the connection]
01:27
jenrzzz has quit [Ping timeout: 258 seconds]
01:29
crankharder has joined #ruby
01:30
Swyper has joined #ruby
01:30
Swyper has quit [Remote host closed the connection]
01:30
Swyper has joined #ruby
01:33
Swyper has quit [Remote host closed the connection]
01:34
Swyper has joined #ruby
01:36
Swyper has quit [Remote host closed the connection]
01:42
gix has quit [Ping timeout: 255 seconds]
01:55
fphilipe_ has joined #ruby
02:03
planigan has joined #ruby
02:05
wald0 has quit [Quit: Lost terminal]
02:05
hightower3 has joined #ruby
02:06
jenrzzz has joined #ruby
02:11
zululee_ has joined #ruby
02:12
mikecmpbll has quit [Quit: inabit. zz.]
02:14
xco has quit [Quit: xco]
02:15
jenrzzz has quit [Ping timeout: 255 seconds]
02:15
crankharder has quit [Ping timeout: 258 seconds]
02:17
xco has joined #ruby
02:17
crankharder has joined #ruby
02:18
jenrzzz has joined #ruby
02:20
xco has quit [Client Quit]
02:20
xco has joined #ruby
02:20
xco has quit [Client Quit]
02:25
jenrzzz has quit [Ping timeout: 246 seconds]
02:26
jenrzzz has joined #ruby
02:27
AJA4350 has quit [Quit: AJA4350]
02:29
fphilipe_ has quit [Ping timeout: 252 seconds]
02:30
espinet has joined #ruby
02:31
laaron has quit [Remote host closed the connection]
02:32
jenrzzz has quit [Ping timeout: 246 seconds]
02:32
cnsvc has quit [Ping timeout: 256 seconds]
02:33
dviola has quit [Quit: WeeChat 2.4]
02:34
dsmythe has quit [Remote host closed the connection]
02:34
crankharder has quit [Ping timeout: 255 seconds]
02:34
laaron has joined #ruby
02:35
dsmythe has joined #ruby
02:39
phenom has joined #ruby
02:41
m_antis has quit [Quit: m_antis]
02:44
teej has quit [Quit: Connection closed for inactivity]
02:59
crankharder has joined #ruby
03:02
rhuang_ has quit [Ping timeout: 258 seconds]
03:04
planigan has quit [Quit: leaving]
03:04
planigan has joined #ruby
03:06
braincrash has quit [Quit: bye bye]
03:10
braincrash has joined #ruby
03:11
djellemah has quit [Ping timeout: 244 seconds]
03:12
Nicmavr has quit [Ping timeout: 245 seconds]
03:12
Nicmavr has joined #ruby
03:19
weteamsteve has joined #ruby
03:22
cnsvc has joined #ruby
03:46
minimal_life has joined #ruby
03:50
Ai9zO5AP has joined #ruby
04:07
dsmythe has quit [Remote host closed the connection]
04:08
dsmythe has joined #ruby
04:10
hightower3 has quit [Ping timeout: 255 seconds]
04:10
code_zombie has joined #ruby
04:12
Nicmavr has quit [Ping timeout: 245 seconds]
04:12
Nicmavr has joined #ruby
04:15
fphilipe_ has joined #ruby
04:15
ricekrispie2 has joined #ruby
04:17
Swyper has joined #ruby
04:17
ricekrispie has quit [Ping timeout: 245 seconds]
04:20
al-damiri has quit [Quit: Connection closed for inactivity]
04:25
tuxaanand has joined #ruby
04:28
jenrzzz has joined #ruby
04:33
jenrzzz has quit [Ping timeout: 258 seconds]
04:33
tuxaanand has joined #ruby
04:33
waheedi has joined #ruby
04:38
code_zombie has quit [Quit: Leaving]
04:42
dellavg_ has joined #ruby
04:43
ur5us has quit [Remote host closed the connection]
04:44
ur5us has joined #ruby
04:48
ur5us has quit [Ping timeout: 258 seconds]
04:49
Swyper has quit [Remote host closed the connection]
04:49
esrse has joined #ruby
04:54
rhuang_ has joined #ruby
04:59
dsmythe has quit [Ping timeout: 258 seconds]
05:00
rhuang_ has quit [Ping timeout: 245 seconds]
05:14
SuperLag has quit [Quit: leaving]
05:17
reber has joined #ruby
05:23
conta has joined #ruby
05:24
waheedi has quit [Quit: waheedi]
05:24
brendan- has joined #ruby
05:26
haengma has joined #ruby
05:26
duckpupp- has quit [Ping timeout: 245 seconds]
05:26
haengma has quit [Remote host closed the connection]
05:29
duckpuppy has joined #ruby
05:30
govg has quit [Ping timeout: 246 seconds]
05:33
weteamsteve has quit [Read error: Connection reset by peer]
05:33
giraffe has quit [Write error: Connection reset by peer]
05:33
espinet has quit [Quit: espinet]
05:34
Swyper has joined #ruby
05:37
waheedi has joined #ruby
05:38
Swyper has quit [Remote host closed the connection]
05:49
waheedi has quit [Quit: waheedi]
05:49
Swyper has joined #ruby
05:50
Swyper has quit [Remote host closed the connection]
05:50
Swyper has joined #ruby
05:53
Swyper has quit [Remote host closed the connection]
05:57
Swyper has joined #ruby
05:57
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:58
Swyper has quit [Remote host closed the connection]
06:02
fphilipe_ has quit [Ping timeout: 258 seconds]
06:04
phenom has quit [Ping timeout: 258 seconds]
06:05
orbyt_ has joined #ruby
06:05
orbyt_ has quit [Client Quit]
06:10
aupadhye has joined #ruby
06:11
ltd_ has quit [Ping timeout: 276 seconds]
06:16
aupadhye has quit [Ping timeout: 245 seconds]
06:17
hightower3 has joined #ruby
06:19
arup_r has joined #ruby
06:20
fphilipe_ has joined #ruby
06:22
dionysus69 has joined #ruby
06:28
zacts has joined #ruby
06:29
jenrzzz has joined #ruby
06:32
kyrylo has joined #ruby
06:32
aupadhye has joined #ruby
06:33
jenrzzz has quit [Ping timeout: 258 seconds]
06:38
geonaumov has joined #ruby
06:41
Nicmavr has quit [Ping timeout: 245 seconds]
06:41
Dbugger has joined #ruby
06:42
Nicmavr has joined #ruby
06:43
blackmesa has joined #ruby
06:45
zacts has quit [Quit: WeeChat 2.4]
06:45
minimal_life has quit [Quit: ZZZzzz…]
06:50
armyriad has quit [Quit: Leaving]
06:50
laaron has quit [Remote host closed the connection]
06:50
andikr has joined #ruby
06:52
Swyper has joined #ruby
06:52
Swyper has quit [Remote host closed the connection]
06:52
laaron has joined #ruby
06:56
armyriad has joined #ruby
07:00
mozzarel1 has joined #ruby
07:01
nowhere_man has quit [Ping timeout: 258 seconds]
07:01
haengma has joined #ruby
07:01
darris has quit [Max SendQ exceeded]
07:01
darris has joined #ruby
07:02
mozzarella has quit [Ping timeout: 245 seconds]
07:02
mozzarel1 is now known as mozzarella
07:05
haengma has quit [Ping timeout: 258 seconds]
07:09
zapata has joined #ruby
07:09
vondruch has quit [Quit: vondruch]
07:10
aupadhye has quit [Ping timeout: 258 seconds]
07:13
blackmesa has quit [Quit: WeeChat 2.4]
07:15
stooj has joined #ruby
07:16
geonaumov has quit [Read error: Connection reset by peer]
07:18
reber has quit [Remote host closed the connection]
07:19
Kalyan__ has joined #ruby
07:20
crankharder has quit [Ping timeout: 245 seconds]
07:21
crankharder has joined #ruby
07:23
lxsameer has joined #ruby
07:27
Nicmavr has quit [Ping timeout: 245 seconds]
07:27
Nicmavr has joined #ruby
07:30
cnsvc has quit [Ping timeout: 256 seconds]
07:31
jefffrails35 has joined #ruby
07:36
Dbugger has quit [Ping timeout: 252 seconds]
07:39
vondruch has joined #ruby
07:41
nowhere_man has joined #ruby
07:46
aupadhye has joined #ruby
07:47
stooj has quit [Ping timeout: 258 seconds]
07:47
stooj has joined #ruby
07:48
tdy1 has quit [Ping timeout: 255 seconds]
07:53
nowhere_man has quit [Ping timeout: 258 seconds]
08:02
crankharder has quit [Ping timeout: 268 seconds]
08:02
n13z has quit [Ping timeout: 246 seconds]
08:04
mikecmpbll has joined #ruby
08:04
andikr has quit [Ping timeout: 258 seconds]
08:04
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:05
andikr has joined #ruby
08:10
alem0lars has joined #ruby
08:13
jefffrails35 has quit [Remote host closed the connection]
08:17
ellcs has joined #ruby
08:20
andikr has quit [Ping timeout: 258 seconds]
08:21
andikr has joined #ruby
08:27
Nicmavr has quit [Ping timeout: 245 seconds]
08:28
Nicmavr has joined #ruby
08:29
jenrzzz has joined #ruby
08:33
jenrzzz has quit [Ping timeout: 244 seconds]
08:34
NL3limin4t0r has joined #ruby
08:37
cnsvc has joined #ruby
08:41
shadeslayer has joined #ruby
08:41
dsmythe has joined #ruby
08:45
dsmythe_ has joined #ruby
08:45
dsmythe has quit [Ping timeout: 252 seconds]
08:50
hightower3 has quit [Ping timeout: 255 seconds]
08:56
rhuang_ has joined #ruby
09:01
rhuang_ has quit [Ping timeout: 258 seconds]
09:02
gregf_ has joined #ruby
09:03
ur5us has joined #ruby
09:08
crankharder has joined #ruby
09:09
cnsvc has quit [Ping timeout: 256 seconds]
09:10
jenrzzz has joined #ruby
09:13
<
NL3limin4t0r >
Is there an easy way to get the source location of the (first) definition of a class at runtime? For methods there is `method(:some_method).source_location`. I'm looking for the same thing but for the class itself.
09:15
jenrzzz has quit [Ping timeout: 246 seconds]
09:18
TomyWork has joined #ruby
09:18
elomatreb has quit [Quit: mep mep]
09:25
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:25
dsmythe_ has quit [Ping timeout: 245 seconds]
09:29
Kalyan__ has quit [Ping timeout: 268 seconds]
09:30
m_antis has joined #ruby
09:35
doodlebug has joined #ruby
09:36
c0ncealed4 has joined #ruby
09:39
mhlei has joined #ruby
09:40
conta has quit [Remote host closed the connection]
09:41
Nicmavr has quit [Ping timeout: 245 seconds]
09:42
cd has quit [Ping timeout: 256 seconds]
09:42
cnsvc has joined #ruby
09:42
Nicmavr has joined #ruby
09:44
<
mhlei >
hello everyone, my i ask the ref in `self.formats = request.formats.map(&:ref).compact ` is a user-defined method?
09:46
<
mhlei >
the value of the request.formats is [#<Mime::Type:0x0000000004e3a090 @hash=-4433183059252532333, @string="text/html", @symbol=:html, @synonyms=["application/xhtml+xml"]>]
09:46
<
al2o3-cr >
mhlei: that'll be a yes.
09:47
<
mhlei >
i cann't found it
09:47
<
al2o3-cr >
NL3limin4t0r: you could possibly use TracePoint
09:50
comet23 has quit [Quit: Connection closed for inactivity]
09:50
<
mhlei >
is it in the namespace of request.formats.map? or in current namespace?
09:51
<
al2o3-cr >
mhlei: it should be a instance method on Mime::Type
09:52
<
al2o3-cr >
&>> TracePoint.trace(:class) { |tp| p [tp.path, tp.lineno] }; class X end
09:53
<
al2o3-cr >
something along those lines could work
09:53
<
mhlei >
maybe, thank U, al2o3-cr
09:54
hightower2 has joined #ruby
09:55
<
mhlei >
&>> TracePoint.trace(Mine::Type)
09:56
Jonopoly has joined #ruby
09:56
Jonopoly has quit [Client Quit]
09:57
Jonopoly has joined #ruby
09:58
<
mhlei >
one can use the method in Mine::Type without require it ?
09:59
<
mhlei >
a bit diffcult for ruby. [:smile]
10:00
<
al2o3-cr >
mhlei: i don't know what you're asking?
10:01
<
al2o3-cr >
is this rails?
10:01
Cork has quit [Ping timeout: 250 seconds]
10:01
<
mhlei >
yes, in the actionpack gems
10:03
<
mhlei >
i know it now. the ref is the instance method of the `request.formats`, not in current namespace, so I can not found the require statement in current namespaces.
10:03
rafadc has quit [Read error: Connection reset by peer]
10:04
altigraph has quit [Ping timeout: 246 seconds]
10:05
rafadc has joined #ruby
10:06
leimh has joined #ruby
10:09
<
al2o3-cr >
mhlei: require 'action_dispatch/http/mime_type'
10:09
mhlei has quit [Ping timeout: 245 seconds]
10:09
<
al2o3-cr >
if you've not already required it.
10:10
Cork has joined #ruby
10:11
rafadc has quit [Read error: Connection reset by peer]
10:12
apparition has joined #ruby
10:12
rafadc has joined #ruby
10:12
Nicmavr has quit [Ping timeout: 245 seconds]
10:12
Kestrel-029 has joined #ruby
10:17
d^sh has quit [Ping timeout: 258 seconds]
10:19
d^sh has joined #ruby
10:27
haengma has joined #ruby
10:27
Nicmavr has joined #ruby
10:28
Kestrel-029 has quit [Ping timeout: 245 seconds]
10:32
haengma has quit [Ping timeout: 246 seconds]
10:43
cnsvc has quit [Ping timeout: 256 seconds]
10:55
ur5us has quit [Remote host closed the connection]
10:56
ur5us has joined #ruby
10:59
AJA4350 has joined #ruby
11:00
ur5us has quit [Ping timeout: 244 seconds]
11:04
vondruch has quit [Ping timeout: 258 seconds]
11:04
vondruch has joined #ruby
11:09
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
11:12
cnsvc has joined #ruby
11:15
vondruch has quit [Quit: vondruch]
11:15
vondruch has joined #ruby
11:15
al2o3-cr has joined #ruby
11:30
Kalyan__ has joined #ruby
11:30
Kalyan__ has quit [Max SendQ exceeded]
11:31
Kalyan__ has joined #ruby
11:31
kyrylo has joined #ruby
11:32
esrse has quit [Ping timeout: 245 seconds]
11:36
ovnimancer has joined #ruby
11:41
Nicmavr has quit [Ping timeout: 245 seconds]
11:42
Nicmavr has joined #ruby
11:44
reber has joined #ruby
11:45
cnsvc has quit [Ping timeout: 256 seconds]
11:48
Swyper has joined #ruby
11:49
lubekpl has joined #ruby
11:50
Jonopoly has quit [Quit: WeeChat 2.4]
11:52
AJA4350 has quit [Remote host closed the connection]
11:57
AJA4350 has joined #ruby
12:01
agent_white has joined #ruby
12:05
truenito has joined #ruby
12:05
truenito has quit [Remote host closed the connection]
12:06
Kalyan__ has quit [Ping timeout: 258 seconds]
12:17
cnsvc has joined #ruby
12:18
<
NL3limin4t0r >
al2o3-cr: Thanks for the suggestion, I'll have a look.
12:20
Swyper has quit [Remote host closed the connection]
12:22
jcalla has quit [Ping timeout: 255 seconds]
12:37
<
al2o3-cr >
NL3limin4t0r: np
12:38
doodleb88 has joined #ruby
12:39
laaron has quit [Remote host closed the connection]
12:40
doodlebug has quit [Ping timeout: 255 seconds]
12:41
laaron has joined #ruby
12:42
Kalyan has joined #ruby
12:50
cnsvc has quit [Ping timeout: 256 seconds]
12:50
troulouliou_div2 has joined #ruby
12:55
conta1 has joined #ruby
12:57
rhuang_ has joined #ruby
12:57
helpa has quit [Remote host closed the connection]
12:57
houhouli_ has joined #ruby
12:57
helpa has joined #ruby
12:58
JayDoubleu has quit [Ping timeout: 252 seconds]
12:58
endemic has quit [Ping timeout: 248 seconds]
12:58
timeless has quit [Ping timeout: 252 seconds]
12:58
d0liver has quit [Ping timeout: 252 seconds]
12:59
peteretep has quit [Ping timeout: 250 seconds]
12:59
pwillard has quit [Ping timeout: 248 seconds]
12:59
trebor8_ has joined #ruby
12:59
jhill_ has joined #ruby
12:59
arooni_team_b has joined #ruby
12:59
psyton has quit [Ping timeout: 248 seconds]
12:59
houhoulis has quit [Ping timeout: 248 seconds]
12:59
tris has quit [Ping timeout: 248 seconds]
12:59
arooni has quit [Ping timeout: 248 seconds]
12:59
llua` has joined #ruby
13:00
llua has quit [Ping timeout: 252 seconds]
13:00
englishm has quit [Ping timeout: 252 seconds]
13:00
jhill has quit [Ping timeout: 248 seconds]
13:00
uranoss has quit [Ping timeout: 248 seconds]
13:00
trebor8 has quit [Ping timeout: 248 seconds]
13:00
GodFather_ has quit [Ping timeout: 248 seconds]
13:00
trebor8_ is now known as trebor8
13:00
jhill_ is now known as jhill
13:00
mcspud has quit [Ping timeout: 250 seconds]
13:00
GodFather has quit [Ping timeout: 248 seconds]
13:01
JayDoubleu has joined #ruby
13:01
d0liver has joined #ruby
13:01
pwillard has joined #ruby
13:01
rhuang_ has quit [Ping timeout: 255 seconds]
13:01
GodFather_ has joined #ruby
13:01
tris has joined #ruby
13:01
GodFather has joined #ruby
13:02
timeless has joined #ruby
13:02
Kalyan has quit [Ping timeout: 255 seconds]
13:02
uranoss has joined #ruby
13:02
englishm has joined #ruby
13:05
englishm has quit [Excess Flood]
13:05
englishm has joined #ruby
13:14
fdimitri has quit [Changing host]
13:14
fdimitri has joined #ruby
13:14
fdimitri is now known as FrankDW
13:14
peteretep has joined #ruby
13:20
cnsvc has joined #ruby
13:22
apparition has quit [Quit: Bye]
13:22
endemic has joined #ruby
13:26
shtirlic has joined #ruby
13:26
agent_white has quit [Remote host closed the connection]
13:27
mcspud has joined #ruby
13:28
vondruch_ has joined #ruby
13:28
djellemah has joined #ruby
13:31
doodleb88 has quit [Read error: Connection reset by peer]
13:32
vondruch has quit [Ping timeout: 258 seconds]
13:32
vondruch_ is now known as vondruch
13:32
doodlebug has joined #ruby
13:32
doodlebug has quit [Excess Flood]
13:33
jcalla has joined #ruby
13:33
laaron has quit [Remote host closed the connection]
13:33
laaron- has joined #ruby
13:33
Fusl has quit [Ping timeout: 256 seconds]
13:36
Fusl has joined #ruby
13:38
doodleb47 has joined #ruby
13:39
m_antis has quit [Quit: m_antis]
13:39
conta1 has quit [Ping timeout: 255 seconds]
13:39
m_antis has joined #ruby
13:40
doodleb47 has quit [Read error: Connection reset by peer]
13:40
Dbugger has joined #ruby
13:42
troulouliou_div2 has quit [Read error: Connection reset by peer]
13:44
doodleb68 has joined #ruby
13:45
djellemah has quit [Ping timeout: 246 seconds]
13:45
fmccann has joined #ruby
13:46
Jonopoly has joined #ruby
13:47
dar123 has joined #ruby
13:48
minimal_life has joined #ruby
13:48
<
syndikate >
Is there any equivalent way of doing this in ruby? Elixir snippet: Enum.reduce(a_map, &process(&1, &2)), essentially I want to be able to pass a method into enum_with_index.map(&:process_all) where it would automatically pass the two arguments into process_all
13:49
m_antis has quit [Read error: Connection reset by peer]
13:51
djellemah has joined #ruby
13:51
Dbugger has quit [Quit: Leaving]
13:51
<
ellcs >
hey, how do you guys handle
13:52
<
ellcs >
if you have multiple os instances
13:52
<
ellcs >
and a gemfile.lock
13:52
m_antis has joined #ruby
13:52
<
ellcs >
god, that grammar
13:53
cnsvc has quit [Ping timeout: 256 seconds]
13:54
<
syndikate >
I believe it is not possible to get that syntax in ruby, but I just wanted to be sure.
13:55
<
syndikate >
ellcs, what do you mean by multiple os instances?
13:57
<
phaul >
" where it would automatically pass the two arguments " - map doesn't want to pass 2 arguments, it wants to pass 1. Do you mean inject/reduce ?
13:57
<
ellcs >
sorry, i want to be able to deploy on debian(old) and debian(new), to keep it simple. i am bound to system-libs and those differ on old and new.
13:57
djellemah has quit [Remote host closed the connection]
14:03
<
phaul >
&>> foo = -> (a, b) { a + b }; [1,2,3].reduce(&foo)
14:03
<
phaul >
syndikate: ^ if that's what you want
14:05
Xiti` is now known as Xiti
14:09
Kestrel-029 has joined #ruby
14:09
Nicmavr has quit [Ping timeout: 245 seconds]
14:10
ta1 has quit [Ping timeout: 250 seconds]
14:11
gnufied has joined #ruby
14:11
ta1 has joined #ruby
14:15
IanMalcolm has joined #ruby
14:15
i1nfusion has quit [Remote host closed the connection]
14:16
i1nfusion has joined #ruby
14:18
jeremycw has joined #ruby
14:18
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:18
IanMalcolm has quit [Client Quit]
14:19
IanMalcolm has joined #ruby
14:20
robotcars has joined #ruby
14:21
robotcars has quit [Client Quit]
14:26
cnsvc has joined #ruby
14:27
<
NL3limin4t0r >
ellcs: I normaly use RVM. When using system-libs I'd check the newest versions avaible on debian(old), lock the gems on that version and on debian(new) install that specific version of the lib.
14:28
haengma has joined #ruby
14:30
<
NL3limin4t0r >
If I'm not mistaken you can specify a version in apt using `apt install your-lib -v 1.2.3`
14:30
m_antis has quit [Quit: m_antis]
14:31
teclator has quit [Ping timeout: 244 seconds]
14:31
m_antis has joined #ruby
14:32
mostlybadfly has joined #ruby
14:32
doodleb68 has quit [Read error: Connection reset by peer]
14:32
haengma has quit [Ping timeout: 246 seconds]
14:33
doodlebug has joined #ruby
14:33
doodlebug has quit [Excess Flood]
14:33
doodlebug has joined #ruby
14:33
doodlebug has quit [Excess Flood]
14:33
<
NL3limin4t0r >
syndikate: Alternatively if you want to reduce using an operator with two inputs you can provide a symbol.
14:33
doodlebug has joined #ruby
14:33
doodlebug has quit [Excess Flood]
14:33
<
NL3limin4t0r >
&>> (1..6).reduce(:+)
14:34
doodlebug has joined #ruby
14:34
doodlebug has quit [Excess Flood]
14:34
doodlebug has joined #ruby
14:34
doodlebug has quit [Excess Flood]
14:35
doodlebug has joined #ruby
14:35
doodlebug has quit [Excess Flood]
14:35
<
NL3limin4t0r >
Is the same as `(1..6).reduce { |sum, nr| sum + nr }`
14:35
doodlebug has joined #ruby
14:35
doodlebug has quit [Excess Flood]
14:36
doodlebug has joined #ruby
14:36
doodlebug has quit [Excess Flood]
14:36
doodlebug has joined #ruby
14:36
doodlebug has quit [Excess Flood]
14:36
doodlebug has joined #ruby
14:36
SigizMG has joined #ruby
14:36
doodlebug has quit [Excess Flood]
14:37
doodlebug has joined #ruby
14:37
doodlebug has quit [Excess Flood]
14:37
doodlebug has joined #ruby
14:37
doodlebug has quit [Excess Flood]
14:37
TomyWork has quit [Remote host closed the connection]
14:38
SigizMG has quit [Remote host closed the connection]
14:38
fphilipe has joined #ruby
14:40
ta1 has quit [Ping timeout: 252 seconds]
14:41
fphilipe_ has quit [Ping timeout: 255 seconds]
14:46
gloscombe has joined #ruby
14:46
SigizMG has joined #ruby
14:46
robotcars has joined #ruby
14:47
rafadc has quit [Ping timeout: 255 seconds]
14:47
SigizMG has quit [Client Quit]
14:47
SigizMG has joined #ruby
14:51
altious has joined #ruby
14:52
rafadc has joined #ruby
14:53
SuperLag has joined #ruby
14:55
Exuma has joined #ruby
14:57
Kestrel-029 has quit [Ping timeout: 245 seconds]
14:58
Nicmavr has joined #ruby
14:58
polishdub has joined #ruby
14:59
rhuang_ has joined #ruby
14:59
cnsvc has quit [Ping timeout: 256 seconds]
15:01
gregf_ has quit [Ping timeout: 256 seconds]
15:02
towo has quit [Ping timeout: 252 seconds]
15:03
towo has joined #ruby
15:03
rhuang_ has quit [Ping timeout: 252 seconds]
15:05
ovnimancer has quit [Quit: ovnimancer]
15:05
aupadhye has quit [Ping timeout: 244 seconds]
15:13
Kestrel-029 has joined #ruby
15:13
Nicmavr has quit [Ping timeout: 245 seconds]
15:19
Azure|dc has quit [Ping timeout: 252 seconds]
15:25
<
havenwood >
ellcs: The Gemfile is just a Ruby file, so you can use normal Ruby logic with case or if statements.
15:30
rhuang_ has joined #ruby
15:33
Ai9zO5AP has quit [Ping timeout: 246 seconds]
15:38
rippa has joined #ruby
15:39
llua` is now known as llua
15:40
fphilipe_ has joined #ruby
15:40
minimal_life has quit [Quit: I am functioning within established parameters.]
15:40
fphilipe has quit [Ping timeout: 252 seconds]
15:41
Inline has quit [Quit: Leaving]
15:42
Kestrel-029 has quit [Ping timeout: 245 seconds]
15:43
Nicmavr has joined #ruby
15:43
djellemah has joined #ruby
15:44
wildermind has joined #ruby
15:46
crankharder has quit [Ping timeout: 258 seconds]
15:46
Inline has joined #ruby
15:47
doodlebug has joined #ruby
15:47
doodlebug has quit [Excess Flood]
15:48
fphilipe_ has quit [Ping timeout: 246 seconds]
15:52
dar123 has joined #ruby
15:53
doodlebug has joined #ruby
15:53
doodlebug has quit [Excess Flood]
15:53
Azure has joined #ruby
15:54
crankharder has joined #ruby
15:55
Fusl has quit [Remote host closed the connection]
15:55
Jonopoly has quit [Quit: WeeChat 2.4]
15:55
Fusl has joined #ruby
15:59
doodlebug has joined #ruby
15:59
doodlebug has quit [Excess Flood]
15:59
doodlebug has joined #ruby
15:59
doodlebug has quit [Excess Flood]
16:00
doodlebug has joined #ruby
16:00
doodlebug has quit [Excess Flood]
16:00
doodlebug has joined #ruby
16:04
fphilipe_ has joined #ruby
16:04
m_antis has quit [Ping timeout: 268 seconds]
16:06
SeepingN has joined #ruby
16:08
ovnimancer has joined #ruby
16:09
hightower2 has quit [Ping timeout: 245 seconds]
16:09
fphilipe_ has quit [Ping timeout: 252 seconds]
16:10
djellemah has quit [Ping timeout: 246 seconds]
16:15
andikr has quit [Remote host closed the connection]
16:16
haengma has joined #ruby
16:22
dsmythe has joined #ruby
16:22
doodlebug has quit [Read error: Connection reset by peer]
16:23
brool has joined #ruby
16:24
doodlebug has joined #ruby
16:24
doodlebug has quit [Excess Flood]
16:27
Nicmavr has quit [Ping timeout: 245 seconds]
16:27
teardown has quit [Ping timeout: 255 seconds]
16:27
griffindy has joined #ruby
16:28
Nicmavr has joined #ruby
16:31
doodlebug has joined #ruby
16:32
mikecmpbll has quit [Quit: inabit. zz.]
16:33
moei has joined #ruby
16:35
Azure has quit [Ping timeout: 268 seconds]
16:36
doodlebug has joined #ruby
16:36
doodlebug has quit [Excess Flood]
16:42
doodlebug has joined #ruby
16:43
doodlebug has quit [Excess Flood]
16:43
ovnimancer has quit [Ping timeout: 268 seconds]
16:45
aupadhye has joined #ruby
16:48
doodlebug has joined #ruby
16:49
doodlebug has quit [Excess Flood]
16:49
hiroaki has joined #ruby
16:50
zacts has joined #ruby
16:51
jottr has joined #ruby
16:52
Jello_Raptor has quit [Ping timeout: 246 seconds]
16:53
Azure has joined #ruby
16:54
djellemah has joined #ruby
16:54
doodlebug has joined #ruby
16:55
doodlebug has quit [Excess Flood]
16:55
dsmythe_ has joined #ruby
16:55
Jello_Raptor has joined #ruby
16:58
dsmythe has quit [Ping timeout: 252 seconds]
17:01
doodlebug has joined #ruby
17:03
aupadhye has quit [Ping timeout: 250 seconds]
17:04
mikecmpbll has joined #ruby
17:06
zacts has quit [Ping timeout: 246 seconds]
17:06
gloscombe has quit [Quit: WeeChat 2.4]
17:14
m_antis has joined #ruby
17:16
djellemah has quit [Ping timeout: 258 seconds]
17:17
aupadhye has joined #ruby
17:22
hightower2 has joined #ruby
17:25
ramfjord has joined #ruby
17:27
galaxie has joined #ruby
17:27
lxsameer has quit [Ping timeout: 258 seconds]
17:29
zacts has joined #ruby
17:32
i1nfusion has quit [Remote host closed the connection]
17:32
<
syndikate >
NL3limin4t0r, phaul Thanks! I was using (&:custom_method) which was causing error, instead I had to use (&custom_method)
17:32
<
syndikate >
I used symbol
17:33
djellemah has joined #ruby
17:33
i1nfusion has joined #ruby
17:43
Kestrel-029 has joined #ruby
17:43
Nicmavr has quit [Ping timeout: 245 seconds]
17:46
SuperL4g has joined #ruby
17:46
aupadhye has quit [Remote host closed the connection]
17:47
SuperLag has quit [Ping timeout: 246 seconds]
17:48
tdy1 has joined #ruby
17:48
doodleb22 has joined #ruby
17:50
Eiam has quit [Ping timeout: 252 seconds]
17:51
doodlebug has quit [Ping timeout: 244 seconds]
17:54
Kestrel-029 has quit [Ping timeout: 245 seconds]
17:54
Nicmavr has joined #ruby
17:56
szulak_ has joined #ruby
17:56
Eiam has joined #ruby
17:57
brool has quit [Ping timeout: 250 seconds]
18:04
ovnimancer has joined #ruby
18:05
fphilipe_ has joined #ruby
18:06
szulak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:07
ovnimancer has quit [Client Quit]
18:09
renich has joined #ruby
18:09
jottr has quit [Quit: WeeChat 2.4]
18:10
fphilipe_ has quit [Ping timeout: 246 seconds]
18:11
zacts has quit [Ping timeout: 246 seconds]
18:13
Kestrel-029 has joined #ruby
18:13
zacts has joined #ruby
18:13
wildermind has quit [Quit: Connection closed for inactivity]
18:13
Nicmavr has quit [Ping timeout: 245 seconds]
18:15
zacts has quit [Client Quit]
18:22
sauvin has quit [Read error: Connection reset by peer]
18:23
spiette has joined #ruby
18:26
mikecmpbll has quit [Quit: inabit. zz.]
18:28
djellemah has quit [Ping timeout: 258 seconds]
18:31
djellemah has joined #ruby
18:35
sgen has joined #ruby
18:35
sameerynho has joined #ruby
18:35
doodleb22 has quit [Read error: Connection reset by peer]
18:35
fphilipe_ has joined #ruby
18:36
doodlebug has joined #ruby
18:37
doodlebug has quit [Excess Flood]
18:41
kapilp has joined #ruby
18:42
nwradio878887987 has joined #ruby
18:42
i1nfusion has quit [Remote host closed the connection]
18:42
doodleb74 has joined #ruby
18:43
i1nfusion has joined #ruby
18:43
doodleb74 has quit [Read error: Connection reset by peer]
18:48
doodlebug has joined #ruby
18:49
doodlebug has quit [Excess Flood]
18:49
alem0lars has quit [Ping timeout: 246 seconds]
18:49
Ai9zO5AP has joined #ruby
18:54
i1nfusion has quit [Remote host closed the connection]
18:54
doodlebug has joined #ruby
18:54
doodlebug has quit [Excess Flood]
18:55
doodlebug has joined #ruby
18:55
doodlebug has quit [Excess Flood]
18:55
i1nfusion has joined #ruby
18:55
ellcs1 has joined #ruby
18:55
doodlebug has joined #ruby
18:55
doodlebug has quit [Max SendQ exceeded]
18:56
doodlebug has joined #ruby
19:00
SeepingN has quit [Ping timeout: 252 seconds]
19:02
sgen has quit [Ping timeout: 252 seconds]
19:03
agent_white has joined #ruby
19:09
ellcs1 has quit [Ping timeout: 250 seconds]
19:10
ellcs1 has joined #ruby
19:12
nowhere_man has joined #ruby
19:13
espinet has joined #ruby
19:16
m_antis has quit [Ping timeout: 245 seconds]
19:16
gix has joined #ruby
19:17
<
havenwood >
IGnorAND: hi
19:17
<
IGnorAND >
havenwood: :) Long time no see
19:17
<
IGnorAND >
I have a question you might be able to answer :)
19:18
<
IGnorAND >
I'm trying to cut a gem and created another class. I however now get a message uninitialized constant Gemname::Gemname::ClassICreated
19:18
<
IGnorAND >
I'd like to read about what this means
19:18
<
IGnorAND >
been searching for ruby and ::
19:19
<
havenwood >
IGnorAND: You'll probably want to read up on how Ruby constant lookup works.
19:19
<
havenwood >
IGnorAND: Two blog posts come to mind, sec.
19:19
<
IGnorAND >
much better keywords than ruby gem cutting class which gives me lectures on how to cut stones
19:22
reber has quit [Remote host closed the connection]
19:23
<
havenwood >
IGnorAND: Or "Ruby Under a Microscope" has a constant lookup chapter.
19:23
<
havenwood >
Chapter 6: Method Lookup and Constant Lookup
19:25
espinet has quit [Quit: espinet]
19:26
ramfjord has quit [Ping timeout: 246 seconds]
19:26
galaxie has quit [Quit: galaxie]
19:26
espinet has joined #ruby
19:26
espinet has quit [Client Quit]
19:27
espinet has joined #ruby
19:27
espinet has quit [Client Quit]
19:27
galaxie has joined #ruby
19:28
Nicmavr has joined #ruby
19:28
espinet has joined #ruby
19:28
espinet has quit [Client Quit]
19:28
espinet has joined #ruby
19:28
Kestrel-029 has quit [Ping timeout: 245 seconds]
19:29
espinet has quit [Client Quit]
19:29
espinet has joined #ruby
19:29
Mia has joined #ruby
19:29
espinet has quit [Client Quit]
19:30
espinet has joined #ruby
19:30
espinet has quit [Client Quit]
19:31
espinet has joined #ruby
19:31
espinet has quit [Client Quit]
19:31
leman has joined #ruby
19:32
brool has joined #ruby
19:32
espinet has joined #ruby
19:32
espinet has quit [Client Quit]
19:36
_whitelogger_ has joined #ruby
19:36
_whitelogger has quit [Remote host closed the connection]
19:36
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
19:39
rprimus has quit [Ping timeout: 268 seconds]
19:40
rprimus has joined #ruby
19:42
nowhere_man has quit [Ping timeout: 252 seconds]
19:45
SeepingN has joined #ruby
19:49
m_antis has joined #ruby
19:50
espinet has joined #ruby
19:51
code_zombie has joined #ruby
19:54
hiroaki has quit [Ping timeout: 258 seconds]
19:55
skryking has joined #ruby
19:55
skryking has quit [Remote host closed the connection]
19:56
espinet has quit [Quit: espinet]
19:57
espinet has joined #ruby
19:57
szulak_ has joined #ruby
19:57
espinet has quit [Client Quit]
19:57
espinet has joined #ruby
19:58
Cthulu201 has quit [Ping timeout: 244 seconds]
19:58
espinet has quit [Client Quit]
19:58
espinet has joined #ruby
19:59
espinet has quit [Client Quit]
19:59
espinet has joined #ruby
19:59
espinet has quit [Client Quit]
19:59
m_antis_ has joined #ruby
20:00
espinet has joined #ruby
20:00
espinet has quit [Client Quit]
20:01
espinet has joined #ruby
20:01
espinet has quit [Client Quit]
20:02
m_antis has quit [Ping timeout: 246 seconds]
20:05
skryking has joined #ruby
20:08
fphilipe_ has quit [Ping timeout: 255 seconds]
20:09
jenrzzz has joined #ruby
20:09
hiroaki has joined #ruby
20:10
m_antis has joined #ruby
20:13
m_antis_ has quit [Ping timeout: 246 seconds]
20:20
skryking has quit [Quit: WeeChat 2.2]
20:20
skryking has joined #ruby
20:35
ta has joined #ruby
20:38
altious has quit [Quit: Leaving]
20:39
jenrzzz has quit [Ping timeout: 244 seconds]
20:40
djellemah has quit [Ping timeout: 255 seconds]
20:45
octos has joined #ruby
20:46
octos has quit [Client Quit]
20:47
octos has joined #ruby
20:49
ur5us has joined #ruby
20:50
octos has quit [Client Quit]
20:52
dellavg_ has quit [Ping timeout: 246 seconds]
20:53
Odeoniusz_ has joined #ruby
20:53
djellemah has joined #ruby
20:53
octos has joined #ruby
20:55
Odeoniusz_ has quit [Read error: Connection reset by peer]
20:58
s00pcan has quit [Ping timeout: 258 seconds]
21:00
s00pcan has joined #ruby
21:00
kapilp has quit [Quit: Connection closed for inactivity]
21:03
phaul has quit [Quit: :wq]
21:04
phaul has joined #ruby
21:05
sgen has joined #ruby
21:05
espinet has joined #ruby
21:05
ur5us has quit [Read error: Connection reset by peer]
21:06
ur5us has joined #ruby
21:07
Mia has quit [Ping timeout: 245 seconds]
21:10
espinet has quit [Quit: espinet]
21:13
nowhere_man has joined #ruby
21:16
ta has quit [Quit: WeeChat 2.4]
21:18
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:18
doodleb4 has joined #ruby
21:19
doodlebug has quit [Ping timeout: 258 seconds]
21:20
doodleb4 has quit [Read error: Connection reset by peer]
21:24
doodlebug has joined #ruby
21:24
doodlebug has quit [Excess Flood]
21:29
jenrzzz has joined #ruby
21:30
cnsvc has joined #ruby
21:31
doodlebug has joined #ruby
21:31
doodlebug has quit [Max SendQ exceeded]
21:34
ta has joined #ruby
21:36
doodlebug has joined #ruby
21:36
doodlebug has quit [Excess Flood]
21:39
troulouliou_dev has joined #ruby
21:40
Ai9zO5AP has quit [Quit: WeeChat 2.4]
21:42
Mia has joined #ruby
21:42
Mia has quit [Changing host]
21:42
Mia has joined #ruby
21:42
doodlebug has joined #ruby
21:42
doodlebug has quit [Excess Flood]
21:44
i1nfusion has quit [Remote host closed the connection]
21:45
i1nfusion has joined #ruby
21:45
sameerynho has quit [Ping timeout: 246 seconds]
21:47
sgen has quit [Ping timeout: 250 seconds]
21:47
altious has joined #ruby
21:48
doodlebug has joined #ruby
21:48
doodlebug has quit [Excess Flood]
21:50
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:54
troulouliou_dev has quit [Remote host closed the connection]
21:54
doodlebug has joined #ruby
21:54
doodlebug has quit [Excess Flood]
21:57
ramfjord has quit [Ping timeout: 245 seconds]
21:59
cnsvc has quit [Ping timeout: 256 seconds]
21:59
Omnilord has joined #ruby
21:59
s00pcan has quit [Ping timeout: 252 seconds]
22:00
ruby[bot] has quit [Remote host closed the connection]
22:00
ruby[bot] has joined #ruby
22:00
doodlebug has joined #ruby
22:00
doodlebug has quit [Excess Flood]
22:01
s00pcan has joined #ruby
22:02
dar123 has joined #ruby
22:03
cnsvc has joined #ruby
22:04
djellemah has quit [Ping timeout: 246 seconds]
22:04
m_antis has quit [Ping timeout: 246 seconds]
22:04
ellcs1 has quit [Ping timeout: 250 seconds]
22:05
m_antis has joined #ruby
22:06
linduxed has quit [Ping timeout: 258 seconds]
22:06
doodlebug has joined #ruby
22:06
doodlebug has quit [Excess Flood]
22:07
ta has quit [Ping timeout: 268 seconds]
22:08
altious has quit [Quit: Leaving]
22:12
doodlebug has joined #ruby
22:12
doodlebug has quit [Excess Flood]
22:13
ramfjord has joined #ruby
22:14
mikecmpbll has joined #ruby
22:17
<
asat >
IGnorAND: i think that you want to be reading up on is "ruby namespacing"
22:17
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:18
doodlebug has joined #ruby
22:18
doodlebug has quit [Excess Flood]
22:21
linduxed has joined #ruby
22:21
tdy1 has quit [Ping timeout: 268 seconds]
22:22
sagax has joined #ruby
22:24
doodlebug has joined #ruby
22:24
doodlebug has quit [Excess Flood]
22:26
doodlebug has joined #ruby
22:26
doodlebug has quit [Excess Flood]
22:26
doodlebug has joined #ruby
22:26
doodlebug has quit [Excess Flood]
22:27
doodlebug has joined #ruby
22:27
doodlebug has quit [Excess Flood]
22:27
hightower3 has joined #ruby
22:27
doodlebug has joined #ruby
22:27
doodlebug has quit [Excess Flood]
22:28
doodlebug has joined #ruby
22:28
doodlebug has quit [Excess Flood]
22:28
doodlebug has joined #ruby
22:28
doodlebug has quit [Excess Flood]
22:29
doodlebug has joined #ruby
22:29
doodlebug has quit [Excess Flood]
22:29
wolfshappen has quit [Ping timeout: 246 seconds]
22:29
doodlebug has joined #ruby
22:29
doodlebug has quit [Excess Flood]
22:29
doodlebug has joined #ruby
22:29
doodlebug has quit [Excess Flood]
22:30
hightower2 has quit [Ping timeout: 245 seconds]
22:30
doodlebug has joined #ruby
22:30
sgen has joined #ruby
22:31
wald0 has joined #ruby
22:31
wald0 has quit [Client Quit]
22:32
<
IGnorAND >
@asat thanks
22:32
<
IGnorAND >
@havenwood Thanks
22:35
nowhere_man has quit [Ping timeout: 246 seconds]
22:36
mikecmpbll has quit [Quit: inabit. zz.]
22:36
espinet has joined #ruby
22:40
jeremycw has quit [Ping timeout: 252 seconds]
22:40
i1nfusion has quit [Remote host closed the connection]
22:41
i1nfusion has joined #ruby
22:47
polishdub has quit [Quit: leaving]
22:54
ta has joined #ruby
22:57
jenrzzz has quit [Ping timeout: 268 seconds]
22:57
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:59
kyrylo has joined #ruby
23:05
dar123 has joined #ruby
23:07
jenrzzz has joined #ruby
23:08
espinet has quit [Quit: espinet]
23:12
kyrylo has quit [Ping timeout: 258 seconds]
23:15
AJA4351 has joined #ruby
23:16
AJA4350 has quit [Ping timeout: 255 seconds]
23:16
AJA4351 is now known as AJA4350
23:23
cthulchu has quit [Ping timeout: 246 seconds]
23:30
_whitelogger has joined #ruby
23:39
i1nfusion has quit [Remote host closed the connection]
23:40
i1nfusion has joined #ruby
23:41
mad_al has joined #ruby
23:46
wolfshappen has joined #ruby
23:58
s3nd1v0g1us has joined #ruby