« Back to channel list

#ruby - 10 February 2019

« Back 1 day Forward 1 day »
[00:05:18] blackmesa1: has joined #ruby
[00:06:37] blackmesa: has joined #ruby
[00:14:16] armyriad: has joined #ruby
[00:19:32] lunarkitty7: has joined #ruby
[00:20:56] paulscoder: has joined #ruby
[00:26:32] AJA4351: has joined #ruby
[00:42:24] cd: has joined #ruby
[00:49:31] ghormoon: has joined #ruby
[00:53:51] d^sh: has joined #ruby
[00:59:47] hahuang6-: has joined #ruby
[01:03:14] dinfuehr: has joined #ruby
[01:06:02] s2013: has joined #ruby
[01:21:26] apparition: has joined #ruby
[01:32:40] AJA4351: has joined #ruby
[01:55:37] code_zombie: has joined #ruby
[01:56:33] s2013: has joined #ruby
[02:06:54] houhoulis: has joined #ruby
[02:16:18] eblip: has joined #ruby
[02:19:41] skyikot: has joined #ruby
[02:23:09] maryo_: has joined #ruby
[02:43:34] d^sh: has joined #ruby
[02:47:17] AJA4350: has joined #ruby
[02:58:59] tdy: has joined #ruby
[03:32:18] akemot: has joined #ruby
[03:32:29] tdy: has joined #ruby
[03:53:32] Swyper: has joined #ruby
[04:00:30] s2013: has joined #ruby
[04:08:05] Net: phaul: thank you! when you say that's technically not how let works do you mean because the real reason lets are redefined is because they are (lazily) redefined for each `it`?
[04:09:00] braincrash: has joined #ruby
[04:12:07] sgen: has joined #ruby
[04:27:41] SuperL4g: has joined #ruby
[04:28:00] \void: has joined #ruby
[04:32:51] orbyt_: has joined #ruby
[04:39:19] cnsvc: has joined #ruby
[04:41:30] kent\n: has joined #ruby
[04:48:04] aupadhye: has joined #ruby
[04:48:16] hays: has joined #ruby
[04:54:11] cd: has joined #ruby
[05:08:57] aupadhye: has joined #ruby
[05:09:00] Swyper: has joined #ruby
[05:19:11] Swyper: has joined #ruby
[05:27:23] crankharder: has joined #ruby
[05:33:13] s2013: has joined #ruby
[05:36:32] tdy: has joined #ruby
[05:42:07] \void: has joined #ruby
[05:55:00] skyikot: has joined #ruby
[06:02:46] duderonomy: has joined #ruby
[06:03:36] rippa: has joined #ruby
[06:21:11] _whitelogger: has joined #ruby
[06:44:44] ItsAVortex: has joined #ruby
[06:50:13] akemot: has joined #ruby
[07:09:56] reber: has joined #ruby
[07:11:59] crankharder: has joined #ruby
[07:20:39] crankharder: has joined #ruby
[07:24:02] Swyper: has joined #ruby
[07:35:05] baweaver: &>> class Custom; def to_proc -> v { true } end; end; [1,2,3].select(&Custom.new)
[07:35:10] rubydoc: # => (https://carc.in/#/r/67tk)
[07:36:14] xrexeon: has joined #ruby
[07:36:25] baweaver: &>> class Custom; def to_proc; -> v { true } end; end; [1,2,3].select(&Custom.new)
[07:36:26] rubydoc: # => [1, 2, 3] (https://carc.in/#/r/67tl)
[07:37:05] baweaver: &>> class Custom; def call; true; end; def to_proc; method(:call) end; end; [1,2,3].select(&Custom.new)
[07:37:06] rubydoc: # => wrong argument type Custom (expected Proc) (TypeError) (https://carc.in/#/r/67tm)
[07:37:25] baweaver: havenwood: hrm
[07:37:45] baweaver: method won't go for Proc requirements apparently, slightly pesky
[07:46:14] maryo_: has joined #ruby
[07:53:17] marmotini_: has joined #ruby
[07:56:21] crankharder: has joined #ruby
[08:17:51] Swyper: has joined #ruby
[08:46:44] marmotini_: has joined #ruby
[08:49:36] octos: has joined #ruby
[08:50:56] conta: has joined #ruby
[08:50:56] BH23: has joined #ruby
[08:56:21] conta: has joined #ruby
[08:57:05] maryo_: has joined #ruby
[09:03:14] ravenousmoose: has joined #ruby
[09:10:07] Fernando-Basso: has joined #ruby
[09:15:33] ravenousmoose: has joined #ruby
[09:22:48] szulak_: has joined #ruby
[09:44:58] Nicmavr: has joined #ruby
[09:49:44] deathwishdave: has joined #ruby
[09:51:24] za1b1tsu: has joined #ruby
[09:51:30] dellavg__: has joined #ruby
[09:51:30] sagax: has joined #ruby
[10:00:12] _whitelogger: has joined #ruby
[10:02:05] blackmesa: has joined #ruby
[10:05:53] blackmesa1: has joined #ruby
[10:09:38] aqd: has joined #ruby
[10:11:33] aqd: has joined #ruby
[10:15:03] deathwishdave: has joined #ruby
[10:15:35] za1b1tsu: has joined #ruby
[10:15:45] deathwishdave: has joined #ruby
[10:32:03] Dbugger: has joined #ruby
[10:34:04] conta: has joined #ruby
[10:34:37] Xeago_: has joined #ruby
[10:36:31] deathwishdave: has joined #ruby
[10:45:42] phaul: Net: I meant redefinition is more like being overriden. Given they are instance methods of classes, that inherit from each other
[10:46:03] phaul: hence how super works on the gist
[10:46:20] marmotini_: has joined #ruby
[10:46:37] phaul: and let(:a) { a } is infinite loop
[10:56:42] jason479: has joined #ruby
[10:56:56] phaul: jason479: hi
[10:57:00] jason479: Anyone can help me with module and namespace
[10:57:21] phaul: yep, what's your problem
[10:57:21] jason479: so i have a module named 'OpenBSDHelper'
[10:57:41] jason479: and an other module lives in open_bsd_helper/needs.rb
[10:57:54] phaul: ah. You left exactly the second I answered you yesterday :)
[10:57:57] jason479: how can i get something like that : OpenBSDHelper::Need.root ?
[10:58:17] jason479: i don't understand how to link the module Needs with the OpenBSDHelper namespace
[10:58:37] phaul: module OpenBSDHelper; module Need .. end; end
[10:58:43] phaul: put it inside ^
[10:59:01] marmotini: has joined #ruby
[10:59:07] phaul: modules and classes are open, if you give a new definition you just append to it
[10:59:41] jason479: but if i wish to separate into multiple files ?
[11:00:01] crankharder: has joined #ruby
[11:00:11] phaul: you can define it many times, as new definition appends not redefines
[11:00:29] jason479: i don'tunderstand
[11:00:41] jason479: for now i have 2 files, 2 modules
[11:01:06] jason479: i wish to use the module Needs inside the main module 'OpenBSDHelper'
[11:01:16] jason479: keeping 2 files, 1 file per module
[11:01:22] conta1: has joined #ruby
[11:01:24] phaul: 1 file has OpenBSDHelper the other Need ?
[11:01:40] jason479: 1 file = 1 module = OpenBSDHelper
[11:02:07] jason479: an other file that lives in the folder open_bsd_helper with the filename 'needs.rb'
[11:02:29] jason479: i wish to link 'Need' inside 'OpenBSDHelper' keeping 2 files not append the content
[11:02:47] jason479: and have finally something like that : OpenBSDHelper::Needs.module_name
[11:03:43] phaul: file openbsdhelper: module OpenBSDHelper ... stuff not related to Need; end;
[11:04:02] phaul: file need: module OpenBSDHelper; module Need; ... ; end; end
[11:04:33] phaul: you can open module OpenBSDHelper in two places.
[11:05:44] jason479: how can i get OpenBSDHelper::Needs.method_name_inside_need
[11:06:30] octos: has joined #ruby
[11:08:42] jason479: the main module is open_bsd_helper.rb i just need have inside this module the module Needs
[11:08:49] jason479: i don't understand what you mean
[11:17:46] akemot: has joined #ruby
[11:20:45] akemot: has joined #ruby
[11:25:37] Inline: has joined #ruby
[11:26:56] akemot: has joined #ruby
[11:34:39] Puffball: has joined #ruby
[11:34:52] jason479: any one can help me with Modules ?
[11:43:07] tbuehlmann: jason479: what's the question?
[11:43:21] jason479: hi tbuehlmann
[11:43:43] jason479: i have a file named ./open_bsd_helper.rb it is a module named 'OpenBSDHelper'
[11:44:04] jason479: and an other module located at ./open_bsd_helper/needs.rb named 'Needs'
[11:44:44] jason479: i wish to be able to use this form : OpenBSDHelper::Needs.method_name_in_needs
[11:45:01] jason479: keeping multiples modules in multiple files, not append
[11:45:06] jason479: is there a way to do that ?
[11:48:59] jason479: to illustrate see https://gist.github.com/wesley974/7463153315280962d72e2f01de1dce73
[11:49:26] catbusters: has joined #ruby
[11:50:24] tbuehlmann: you can nest B inside the A namespace
[11:50:48] jason479: i wish to keep two files
[11:51:22] tbuehlmann: you can keep two files
[11:51:34] jason479: how can use it ?
[11:52:21] tbuehlmann: https://gist.github.com/tbuehlmann/671fca8fa29122b39ac9d66b963467ce
[11:53:22] jason479: thank's tbuehlmann
[12:05:18] deathwishdave: has joined #ruby
[12:17:28] roshanavand__: has joined #ruby
[12:19:57] crankharder: has joined #ruby
[12:28:30] ravenousmoose: has joined #ruby
[12:33:02] lxsameer: has joined #ruby
[12:33:48] MuffinPimp: has joined #ruby
[12:38:18] maryo_: has joined #ruby
[12:39:49] olspookishmagus: has joined #ruby
[12:43:13] xrexeon: has joined #ruby
[12:46:33] xrexeon: has joined #ruby
[12:57:12] lucasb: has joined #ruby
[12:58:36] AJA4350: has joined #ruby
[13:00:57] conta: has joined #ruby
[13:03:05] deathwishdave: has joined #ruby
[13:07:48] marmotini: has joined #ruby
[13:07:52] conta: has joined #ruby
[13:09:24] marmotini: has joined #ruby
[13:23:47] marmotini_: has joined #ruby
[13:24:44] AJA4351: has joined #ruby
[13:33:10] crankharder: has joined #ruby
[13:37:03] za1b1tsu: has joined #ruby
[13:41:24] roshanavand1: has joined #ruby
[13:42:14] conta: has joined #ruby
[13:59:00] AJA4351: has joined #ruby
[14:05:21] blackmesa1: has joined #ruby
[14:11:47] akemot: has joined #ruby
[14:13:20] BrianWGray: has joined #ruby
[14:18:45] AJA4350: has joined #ruby
[14:27:09] conta: has joined #ruby
[14:36:25] AJA4351: has joined #ruby
[15:02:35] Biganon: has left #ruby: ("WeeChat 1.6")
[15:07:15] crankharder: has joined #ruby
[15:26:09] blackmesa1: has joined #ruby
[15:32:31] AJA4350: has joined #ruby
[15:41:50] BH23: has joined #ruby
[15:42:39] crankharder: has joined #ruby
[15:43:16] ravenousmoose: has joined #ruby
[15:50:41] AJA4351: has joined #ruby
[16:00:20] conta: has joined #ruby
[16:13:22] dviola: has joined #ruby
[16:15:53] AJA4350: has joined #ruby
[16:33:13] neesus: has joined #ruby
[16:38:19] tdy: has joined #ruby
[16:39:56] DTZUZO: has joined #ruby
[16:44:36] AJA4351: has joined #ruby
[16:51:29] orbyt_: has joined #ruby
[16:55:32] agent_white: has joined #ruby
[17:00:49] akem: has joined #ruby
[17:02:44] phaul: &fake FamilyGuy.quote
[17:02:45] rubydoc: Isn’t ‘bribe’ just another word for ‘love’?
[17:02:51] deathwishdave: has joined #ruby
[17:05:34] conta: has joined #ruby
[17:08:37] Guest22118: has joined #ruby
[17:14:05] octos: has joined #ruby
[17:16:54] conta: has joined #ruby
[17:19:02] AJA4351: has joined #ruby
[17:23:03] marmotini_: has joined #ruby
[17:24:03] blackmesa1: has joined #ruby
[17:26:51] DTZUZO: has joined #ruby
[17:28:24] jcarl43: has joined #ruby
[17:31:52] crankharder: has joined #ruby
[17:40:12] conta: has joined #ruby
[17:46:32] marmotini: has joined #ruby
[17:46:44] conta: has joined #ruby
[17:48:40] crankharder: has joined #ruby
[17:49:25] marmotini_: has joined #ruby
[17:49:40] deathwishdave: has joined #ruby
[17:51:46] blackmesa1: has joined #ruby
[17:51:55] conta: has joined #ruby
[17:58:41] \void: has joined #ruby
[18:02:31] AJA4350: has joined #ruby
[18:03:31] ravenousmoose: has joined #ruby
[18:14:08] arup_r: has joined #ruby
[18:14:37] remi479: has joined #ruby
[18:14:42] remi479: Hi everyone
[18:15:25] remi479: Using raise to show error message, it prints more than just the string you added, is there a way to just show your error message ?
[18:23:33] conta: has joined #ruby
[18:30:11] AJA4351: has joined #ruby
[18:34:31] dinfuehr: has joined #ruby
[18:48:08] catbusters: has joined #ruby
[18:59:15] Puffball_: has joined #ruby
[19:04:31] houhoulis: has joined #ruby
[19:07:45] crankharder: has joined #ruby
[19:15:07] ravenousmoose: has joined #ruby
[19:21:11] lunarkitty7: has joined #ruby
[19:23:06] AJA4350: has joined #ruby
[19:27:18] akem: has joined #ruby
[19:31:24] cnsvc: has joined #ruby
[19:42:34] orbyt_: has joined #ruby
[19:50:50] Matrix9180: has joined #ruby
[20:00:11] kentnl: has joined #ruby
[20:00:15] crankharder: has joined #ruby
[20:01:11] nchambers: has joined #ruby
[20:01:56] conta: has joined #ruby
[20:03:31] za1b1tsu: has joined #ruby
[20:12:48] clemens3: has joined #ruby
[20:13:02] spacesuitdiver: has joined #ruby
[20:19:17] deathwishdave: has joined #ruby
[20:19:19] AJA4350: has joined #ruby
[20:25:13] Nicmavr: has joined #ruby
[20:26:01] conta: has joined #ruby
[20:27:51] Zarthus: has joined #ruby
[20:30:06] deathwishdave: has joined #ruby
[20:43:01] armyriad: has joined #ruby
[20:56:08] crankharder: has joined #ruby
[21:00:01] orbyt_: has joined #ruby
[21:02:41] AJA4350: has joined #ruby
[21:03:40] ur5us: has joined #ruby
[21:04:00] za1b1tsu: has joined #ruby
[21:07:15] tdy: has joined #ruby
[21:07:29] Xiti: has joined #ruby
[21:16:29] dbugger_: has joined #ruby
[21:19:31] dtzuzu: has joined #ruby
[21:24:59] orbyt_: has joined #ruby
[21:45:40] jtdowney: has joined #ruby
[21:48:16] octos: has joined #ruby
[21:48:37] octos: has joined #ruby
[21:48:42] crankharder: has joined #ruby
[21:50:25] jtdowney: has joined #ruby
[21:54:25] AJA4350: has joined #ruby
[21:54:37] jtdowney: has joined #ruby
[21:55:23] Dbugger: has joined #ruby
[21:57:04] Deesl: has joined #ruby
[21:59:00] Deesl: Does anyone have a good tutorial talking about setting up emacs with popup autocompletion and other bells and whistles for Ruby?
[22:02:03] Dbugger: has joined #ruby
[22:07:37] tdy: has joined #ruby
[22:07:43] za1b1tsu: has joined #ruby
[22:25:45] ellcs: has joined #ruby
[22:26:37] spacesuitdiver: has joined #ruby
[22:27:21] bmurt: has joined #ruby
[22:35:39] AJA4350: has joined #ruby
[22:36:34] orbyt_: has joined #ruby
[22:40:27] e: has joined #ruby
[22:51:06] agent_white: has joined #ruby
[22:55:12] cnsvc: has joined #ruby
[22:56:06] bmurt: has joined #ruby
[22:57:23] baweaver: More fun - https://twitter.com/keystonelemur/status/1094726091531407361
[23:05:26] AJA4350: has joined #ruby
[23:08:28] za1b1tsu: has joined #ruby
[23:19:01] octos: has joined #ruby
[23:20:23] clemens3_: has joined #ruby
[23:30:26] clemens3: has joined #ruby
[23:52:40] dinfuehr: has joined #ruby
[23:58:22] conta: has joined #ruby