« Back to channel list

#ruby - 20 July 2017

« Back 1 day Forward 1 day »
[00:00:10] alex``: has joined #ruby
[00:00:50] mim1k: has joined #ruby
[00:01:02] boombox_: has joined #ruby
[00:02:17] kkiero: Radar: does this code from screenshot work for you?
[00:02:31] kkiero: for me it doesn't
[00:02:40] Radar: kkiero: tbh I haven't tried it
[00:02:42] kkiero: it still uses system ruby :(
[00:04:37] ReinH: I think you want rbenv-exec.
[00:04:45] Radar: That's what I was trying to think of
[00:04:58] Radar: https://gist.github.com/radar/3aa7d6e2d2dcc2331712f30c06243d61 This works for me using chruby locally
[00:05:45] ReinH: Radar: you're still here eh
[00:06:02] runescape07rsps: has joined #ruby
[00:06:13] Radar: ReinH: You will pry IRC from my cold, dead hands.
[00:06:26] Radar: Look what I can do, dad.
[00:07:10] milardovich: has joined #ruby
[00:07:45] belmoussaoui__: has joined #ruby
[00:08:04] gil_: has joined #ruby
[00:08:05] gil_: has joined #ruby
[00:08:29] astrobunny: has joined #ruby
[00:11:01] meshsmith: has joined #ruby
[00:11:01] meshsmith: has joined #ruby
[00:13:18] cats: has joined #ruby
[00:15:32] bronson: has joined #ruby
[00:15:51] banisterfiend: has joined #ruby
[00:16:05] kkiero: yeah, with chruby it works because you're sourcing it from script
[00:16:25] kkiero: it doesn't see rbenv command so I cannot do rbenv exec
[00:19:08] kkiero: ok I'm going to use vanilla bash wich echo and piping it to tr
[00:22:55] jenrzzz: has joined #ruby
[00:23:30] cats: has joined #ruby
[00:23:33] hutch34: has joined #ruby
[00:25:40] al2o3-cr: kkiero: str="ąćęłńóśźż"; echo ${str^^} :P
[00:25:44] olivier__: has joined #ruby
[00:26:26] al2o3-cr: actually prefer printf over echo
[00:27:37] umaaji: has joined #ruby
[00:30:19] chouhoulis: has joined #ruby
[00:30:20] SteenJobs_: has joined #ruby
[00:32:09] alveric2: has joined #ruby
[00:33:04] kkiero: al2o3-cr: -: ${str^^}: bad substitution
[00:33:34] al2o3-cr: kkiero: what bash version?
[00:34:35] brent__: has joined #ruby
[00:34:43] kkiero: /bin/bash is 3.2
[00:34:45] hutch34: has joined #ruby
[00:35:54] al2o3-cr: ah, i think that syntax is 4
[00:36:21] al2o3-cr: i might be wrong though
[00:39:01] milardovich: has joined #ruby
[00:40:10] epochwolf: has joined #ruby
[00:40:20] kkiero: ok i'm going to sleep
[00:40:27] kkiero: thanks for any help
[00:40:53] BSaboia: has joined #ruby
[00:41:30] al2o3-cr: kkiero: just pipe it to awk then tr won't work
[00:42:43] AxelAlex: has joined #ruby
[00:43:34] ecuanaso: has joined #ruby
[00:43:37] rfoust: has joined #ruby
[00:45:07] mikecmpbll: has joined #ruby
[00:47:28] al2o3-cr: kkiero: translate() { printf $1 | awk '{ print toupper($1) }'; }; translate "ęóąśłżźćń"
[00:47:47] al2o3-cr: that enough bash/awk for one day :p
[00:49:50] al2o3-cr: that should be upper not translate hehe
[00:51:04] olivier__: has joined #ruby
[00:51:14] kkiero: yes I came up with similiar solution
[00:51:33] digitalnomad: has joined #ruby
[00:51:43] kkiero: the problem is that somehow letters Ł and ł don't transform ;/
[00:53:38] bruno-: has joined #ruby
[00:54:53] sgen: has joined #ruby
[00:57:06] ruby-lang951: has joined #ruby
[01:02:30] apparition: has joined #ruby
[01:06:52] cam27: has joined #ruby
[01:06:55] jenrzzz: has joined #ruby
[01:07:00] milardovich: has joined #ruby
[01:09:04] astrobunny: has joined #ruby
[01:14:41] lacuna: has joined #ruby
[01:14:51] perniciouscaffei: has joined #ruby
[01:16:23] bronson: has joined #ruby
[01:16:29] jackjackdripper: has joined #ruby
[01:18:25] ElFerna: has joined #ruby
[01:18:33] gothicsouth: has joined #ruby
[01:20:02] BSAlb: has joined #ruby
[01:23:57] aaas: has joined #ruby
[01:24:57] Tau: has joined #ruby
[01:26:22] jackjackdripper1: has joined #ruby
[01:29:33] jenrzzz: has joined #ruby
[01:30:33] gizmore: has joined #ruby
[01:31:47] brent__: has joined #ruby
[01:32:29] cschneid_: has joined #ruby
[01:35:23] milardovich: has joined #ruby
[01:37:34] milardov_: has joined #ruby
[01:40:44] cschneid_: has joined #ruby
[01:41:10] __Yiota: has joined #ruby
[01:41:26] jhooker: has joined #ruby
[01:42:37] scorphus: has joined #ruby
[01:44:59] hotpancakes: has joined #ruby
[01:46:40] dmtd: has joined #ruby
[01:47:29] ncthom91: has joined #ruby
[01:49:50] enterprisey: has joined #ruby
[01:49:52] d^sh: has joined #ruby
[01:54:38] hotpancakes: has joined #ruby
[01:55:19] pwnd_nsfw`: has joined #ruby
[01:55:50] digitalnomad: has joined #ruby
[01:56:32] astrobunny: has joined #ruby
[01:58:30] Dimik: has joined #ruby
[02:01:20] mim1k: has joined #ruby
[02:02:30] veex: has joined #ruby
[02:10:21] hotpancakes: has joined #ruby
[02:12:00] boombox_: has joined #ruby
[02:13:44] giraffe: has joined #ruby
[02:13:46] Jameser: has joined #ruby
[02:14:44] tpendragon: has joined #ruby
[02:14:51] eightlimbed: has joined #ruby
[02:15:55] milardovich: has joined #ruby
[02:16:46] ecuanaso: has joined #ruby
[02:17:13] bronson: has joined #ruby
[02:17:50] uZiel: has joined #ruby
[02:23:44] olivier__: has joined #ruby
[02:24:04] olivier__: has joined #ruby
[02:24:55] smulverine: has joined #ruby
[02:25:25] gizmore|2: has joined #ruby
[02:27:42] jenrzzz: has joined #ruby
[02:27:42] jenrzzz: has joined #ruby
[02:33:01] guardianx: has joined #ruby
[02:38:10] charliesome: has joined #ruby
[02:43:07] hotpancakes: has joined #ruby
[02:45:21] duderonomy: has joined #ruby
[02:48:13] guardianx: has left #ruby: ()
[02:52:47] ramfjord: has joined #ruby
[02:53:30] BSab: has joined #ruby
[02:56:51] milardovich: has joined #ruby
[03:01:28] perniciouscaffei: has joined #ruby
[03:06:16] milardovich: has joined #ruby
[03:08:14] nowhere_man: has joined #ruby
[03:14:17] duderonomy: has joined #ruby
[03:15:41] Rodya_: has joined #ruby
[03:18:27] bronson: has joined #ruby
[03:25:17] ramfjord: has joined #ruby
[03:27:56] brent__: has joined #ruby
[03:30:47] GodFather: has joined #ruby
[03:37:28] brent__: has joined #ruby
[03:41:49] gothicsouth: has joined #ruby
[03:42:04] Rodya_: has joined #ruby
[03:43:39] charliesome: has joined #ruby
[03:45:38] eightlimbed: has joined #ruby
[03:45:49] jackjackdripper: has joined #ruby
[03:46:21] jackjackdripper: has joined #ruby
[03:47:20] gwilkes: has joined #ruby
[03:47:23] hutch34: has joined #ruby
[03:48:35] gix: has joined #ruby
[03:50:19] blackwind_123: has joined #ruby
[03:53:00] cam27: has joined #ruby
[03:59:35] jenrzzz: has joined #ruby
[04:00:00] gwilkes: has joined #ruby
[04:00:09] perniciouscaffei: has joined #ruby
[04:01:19] borodin: has joined #ruby
[04:01:47] mim1k: has joined #ruby
[04:09:42] pwned: has joined #ruby
[04:10:20] hotpancakes: has joined #ruby
[04:13:47] gwilkes: has joined #ruby
[04:14:19] milardovich: has joined #ruby
[04:18:34] renchan: has joined #ruby
[04:19:15] bronson: has joined #ruby
[04:23:04] cam27: has joined #ruby
[04:23:13] ramfjord: has joined #ruby
[04:23:45] andrzejku: has joined #ruby
[04:28:26] ColeHub: has joined #ruby
[04:30:51] GodFather: has joined #ruby
[04:31:43] patrontechnosoft: has joined #ruby
[04:32:06] milardovich: has joined #ruby
[04:33:28] ayonkhan: has joined #ruby
[04:35:21] hotpancakes: has joined #ruby
[04:35:24] ramfjord: has joined #ruby
[04:39:26] __Yiota: has joined #ruby
[04:42:27] gwilkes: has joined #ruby
[04:47:51] digitalnomad: has joined #ruby
[04:48:42] bruno-: has joined #ruby
[04:51:04] latemus: has joined #ruby
[04:58:56] jhooker: has joined #ruby
[04:59:27] Rodya_: has joined #ruby
[05:00:47] mim1k: has joined #ruby
[05:08:35] cam27: has joined #ruby
[05:13:19] andrzejku: has joined #ruby
[05:15:42] bambanx: has joined #ruby
[05:17:37] Sammichmaker: has joined #ruby
[05:20:00] meinside: has joined #ruby
[05:20:06] bronson: has joined #ruby
[05:22:16] grant: has joined #ruby
[05:25:42] ramfjord: has joined #ruby
[05:28:01] digitalnomad: has joined #ruby
[05:30:08] kculpis: has joined #ruby
[05:33:10] BSAlb: has joined #ruby
[05:37:23] kies: has joined #ruby
[05:40:58] uZiel: has joined #ruby
[05:42:13] perniciouscaffei: has joined #ruby
[05:42:56] guardianx: has joined #ruby
[05:51:07] anisha: has joined #ruby
[05:54:34] latemus: has joined #ruby
[05:55:41] latemus: has left #ruby: ()
[05:55:50] anisha: has joined #ruby
[05:57:43] ostera: has joined #ruby
[06:00:15] sneakerhax: has joined #ruby
[06:05:19] roshanavand: has joined #ruby
[06:05:49] kculpis: has joined #ruby
[06:09:13] latemus: has joined #ruby
[06:09:50] high_fiver: has joined #ruby
[06:10:48] jenrzzz: has joined #ruby
[06:11:14] hightower2: has joined #ruby
[06:16:56] minimalism: has joined #ruby
[06:18:23] bambanx: has joined #ruby
[06:20:57] bronson: has joined #ruby
[06:22:45] Rodya_: has joined #ruby
[06:23:36] nofxxxx: has joined #ruby
[06:27:35] ascarter: has joined #ruby
[06:36:31] oded: has joined #ruby
[06:38:26] latemus: has joined #ruby
[06:39:20] Puffball_: has joined #ruby
[06:41:17] ramfjord: has joined #ruby
[06:56:07] juggler: has joined #ruby
[07:04:32] andikr: has joined #ruby
[07:04:41] charliesome: has joined #ruby
[07:05:43] coenraad: has joined #ruby
[07:09:22] aufi: has joined #ruby
[07:10:29] hightower4: has joined #ruby
[07:12:11] claw: has joined #ruby
[07:13:22] cyberRodent: has joined #ruby
[07:14:28] alveric3: has joined #ruby
[07:18:35] hotpancakes: has joined #ruby
[07:20:05] Mortomes|Work: has joined #ruby
[07:21:46] bronson: has joined #ruby
[07:23:23] mark_66: has joined #ruby
[07:24:22] Rodya_: has joined #ruby
[07:27:09] ur5us: has joined #ruby
[07:27:28] zanshin: has joined #ruby
[07:28:55] Silthias1: has joined #ruby
[07:32:33] Silthias: has joined #ruby
[07:32:46] yxhuvud: has joined #ruby
[07:34:38] nhhc: has joined #ruby
[07:34:39] nhhc_: has joined #ruby
[07:38:17] ionte: has joined #ruby
[07:42:07] spider-mario: has joined #ruby
[07:50:54] agent_white: has joined #ruby
[07:56:43] djbkd: has joined #ruby
[07:57:12] antgel: has joined #ruby
[08:02:51] ramfjord: has joined #ruby
[08:05:23] bazzy: has joined #ruby
[08:17:11] mikecmpbll: has joined #ruby
[08:18:26] ramfjord: has joined #ruby
[08:22:39] bronson: has joined #ruby
[08:25:05] Rodya_: has joined #ruby
[08:31:58] mim1k: has joined #ruby
[08:33:42] aupadhye: has joined #ruby
[08:37:21] mrfoo: has joined #ruby
[08:38:22] brent__: has joined #ruby
[08:39:48] zapata: has joined #ruby
[08:40:44] lxsameer: has joined #ruby
[08:41:52] doublemalt_: has joined #ruby
[08:41:54] Beams: has joined #ruby
[08:42:46] minimalism: has joined #ruby
[08:44:46] marr: has joined #ruby
[08:50:08] aupadhye: has joined #ruby
[09:03:47] dionysus69: has joined #ruby
[09:09:07] ramfjord: has joined #ruby
[09:18:04] mfaeh: has joined #ruby
[09:23:29] Psy-Q: how can i lay out my rubygems-in-development so i can develop e.g. 2 gems in parallel and load the freshest lib/foobar.rb from disk from inside a gem that provides bin/foobar?
[09:23:52] bronson: has joined #ruby
[09:24:10] Psy-Q: or maybe those are bad example names. bin/dosomething is in one gem and requires lib/foobar.rb from another
[09:27:09] Rodya_: has joined #ruby
[09:29:55] ferr: has joined #ruby
[09:33:20] elomatreb: Psy-Q: If I understand you correctly, bundlers :path may be what you want: https://bundler.io/v1.15/man/gemfile.5.html#PATH
[09:35:53] Psy-Q: elomatreb: thanks, so i would simply have to change that manually when i publish the gems?
[09:36:44] elomatreb: Mh, you could probably require the local version using path in a group block
[09:37:15] elomatreb: I.e. gem "something", path: "some/path", group: :development I think
[09:39:08] Psy-Q: oh, interesting! i'll look into that
[09:46:13] InfinityFye: has joined #ruby
[09:47:31] rgtk: has joined #ruby
[09:47:58] jenrzzz: has joined #ruby
[09:47:58] jenrzzz: has joined #ruby
[09:49:39] frmendes: has joined #ruby
[09:50:05] im0nde: has joined #ruby
[09:50:50] romankapitonov: has joined #ruby
[09:50:52] alex``: has joined #ruby
[10:01:55] sparkyy: has joined #ruby
[10:02:33] camilasan: has joined #ruby
[10:03:27] Jameser`: has joined #ruby
[10:09:09] Serpent7776: has joined #ruby
[10:15:11] milardovich: has joined #ruby
[10:18:43] hotpancakes: has joined #ruby
[10:24:42] bronson: has joined #ruby
[10:24:52] doublemalt_: has joined #ruby
[10:28:04] Rodya_: has joined #ruby
[10:29:19] ltem: has joined #ruby
[10:30:46] Bhootrk_: has joined #ruby
[10:33:15] GodFather: has joined #ruby
[10:39:03] hightower2: has joined #ruby
[10:39:20] hightower4: has joined #ruby
[10:43:15] mfaeh: has joined #ruby
[10:46:36] mfaeh: has joined #ruby
[10:50:01] jenrzzz: has joined #ruby
[10:52:11] TomyWork: has joined #ruby
[10:53:39] apparition: has joined #ruby
[10:57:28] antgel: has joined #ruby
[11:01:23] sepp2k: has joined #ruby
[11:06:52] rgtk: has joined #ruby
[11:11:27] coenraad: has joined #ruby
[11:11:49] mikecmpb_: has joined #ruby
[11:14:20] apparition47: has joined #ruby
[11:18:49] petruff: has joined #ruby
[11:20:39] DoubleMalt: has joined #ruby
[11:20:58] guardianx: has joined #ruby
[11:22:24] brent__: has joined #ruby
[11:23:23] petto___: has joined #ruby
[11:23:42] astrobunny: has joined #ruby
[11:23:45] CVTJNII_: has joined #ruby
[11:24:32] im0nde: has joined #ruby
[11:24:55] ramfjord: has joined #ruby
[11:25:31] bronson: has joined #ruby
[11:28:35] Rodya_: has joined #ruby
[11:31:09] mfaeh: has joined #ruby
[11:32:04] Inoperable: has joined #ruby
[11:39:20] ldnunes: has joined #ruby
[11:39:36] herbmillerjr: has joined #ruby
[11:44:51] stoffus: has joined #ruby
[11:45:13] tacoboy: has joined #ruby
[11:48:52] petto: has joined #ruby
[11:51:01] jenrzzz: has joined #ruby
[11:51:50] lxsameer: has joined #ruby
[11:54:07] alveric1: has joined #ruby
[11:54:58] DoubleMalt: has joined #ruby
[11:54:59] dionysus69: has joined #ruby
[11:57:10] rgtk: has joined #ruby
[11:59:02] Inoperable: has joined #ruby
[12:01:48] synthroid: has joined #ruby
[12:02:16] lacuna: has joined #ruby
[12:03:58] petto: has joined #ruby
[12:07:09] nowhere_man: has joined #ruby
[12:08:07] tvw: has joined #ruby
[12:12:15] guardianx: has left #ruby: ()
[12:13:53] Inoperable: has joined #ruby
[12:14:40] frmendes: has joined #ruby
[12:15:23] __Yiota: has joined #ruby
[12:16:16] cats: has joined #ruby
[12:16:48] sekmo: has joined #ruby
[12:17:39] Inoperable: has joined #ruby
[12:18:08] petto: has joined #ruby
[12:20:55] mfaeh: has joined #ruby
[12:21:33] Jameser: has joined #ruby
[12:21:48] antgel: has joined #ruby
[12:23:27] im0nde: has joined #ruby
[12:24:16] astrobunny: has joined #ruby
[12:26:41] bronson: has joined #ruby
[12:27:46] yeticry: has joined #ruby
[12:29:20] Rodya_: has joined #ruby
[12:33:45] Jameser: has joined #ruby
[12:34:32] kobain: has joined #ruby
[12:34:38] kobain: has joined #ruby
[12:46:11] monument: has joined #ruby
[12:47:57] yew: has joined #ruby
[12:49:04] yew: Why does Ruby allow you to modify class variables outside a class? Why do class variables propagate up to super classes? Seems pretty silly.
[12:57:08] konsolebox: yew: metaprogramming
[13:05:06] coenraad: has joined #ruby
[13:07:11] jzigmund: has joined #ruby
[13:07:32] sekmo: has joined #ruby
[13:09:30] charliesome: has joined #ruby
[13:10:21] mim1k: has joined #ruby
[13:11:42] dminuoso: yew: It is pretty silly and the reason why class variables are generally discouraged.
[13:11:56] dminuoso: yew: class instance variables are the preferred choice. :)
[13:14:28] rgtk: has joined #ruby
[13:17:46] yew: has joined #ruby
[13:18:12] yew: dminuoso: how do you replace class variables with class instance variables?
[13:19:21] dminuoso: yew: you remove one @ ?
[13:19:36] __Yiota: has joined #ruby
[13:19:47] dminuoso: yew: A class instance variable is just a plain instance variable. The trick is to understand that even a class is just an object, and as such can have instance variables.
[13:20:04] eljimmy: has joined #ruby
[13:20:07] yew: dminuoso: but what happens if you want a class variable which is common across all the objects of the class?
[13:20:17] dminuoso: yew: You use a class instance variable...
[13:20:26] dminuoso: Let me demonstrate
[13:20:30] yew: dminuoso: But you said not to use it
[13:20:37] dminuoso: yew: I said not to use class variables!
[13:20:53] dminuoso: This may be easier shown than explained. Give me a second.
[13:21:25] yew: dminuoso: What is the point of class variables existing if they shouldn't be used?
[13:22:22] dminuoso: yew: It's for the case where the inheritance behavior _is_ desirable.
[13:22:26] dminuoso: I cant think of any right now. :-P
[13:24:15] yew: dminuoso: Is it not possible to use class instance variables to simulate class variables?
[13:24:28] dminuoso: yew: It is, that's my point.
[13:24:56] yew: dminuoso: How do you do?
[13:25:09] ramfjord: has joined #ruby
[13:25:16] yew: dminuoso: How do you do it?*
[13:25:16] astrobunny: has joined #ruby
[13:25:22] dminuoso: yew: https://eval.in/835146
[13:25:32] dminuoso: yew: You just use @foo but from within the context of the class itself.
[13:26:04] dminuoso: yew: Generally the rule of thumb is: If it's mutable: use a constant and freeze it, if it's not use a class instance variable.
[13:26:52] dminuoso: Oh, other way around. But you get the idea.
[13:26:56] yew: dminuoso: Yeah, but constants in Ruby aren't actually /constant/
[13:27:06] dminuoso: yew: Which is why you should freeze it too. ;-)
[13:27:12] bronson: has joined #ruby
[13:28:11] rfoust: has joined #ruby
[13:28:35] yew: dminuoso: Freezing doesn't stop you from reassigning a constant
[13:29:02] dminuoso: yew: No but Ruby will help you there. In strict mode it will blow up
[13:29:23] yew: dminuoso: How do I enable strict mode?
[13:29:40] dminuoso: Errr. freeze does.
[13:29:50] high_fiver: has joined #ruby
[13:30:22] dminuoso: Mmm. Weird.
[13:30:24] dminuoso: I hate Ruby.
[13:30:31] DLSteve: has joined #ruby
[13:30:33] yew: dminuoso: Bye?
[13:30:38] sepp2k: has joined #ruby
[13:31:54] cdg: has joined #ruby
[13:32:09] hotpancakes: has joined #ruby
[13:33:42] yew: Is it still acceptable to use class variables but to be disciplined in using them, kinda like how in Python all members of a class are public?
[13:35:18] dminuoso: yew: It should not be.
[13:35:19] matthewd: yew: It is of course acceptable to use them if they're what you need... they're just probably not what you actually need/want.
[13:35:49] yew: Okay, thanks.
[13:35:51] dminuoso: yew: The issue is that class variables leak implementation, and generally prevents your class from maintaining invariants.
[13:36:10] dminuoso: Anyone can inherit from your class and then fiddle around with it.
[13:37:02] matthewd: dminuoso: That's not a very compelling argument.. this is ruby, after all.
[13:37:27] tAn: has joined #ruby
[13:37:56] dminuoso: matthewd: You are right, I should be freezing all my classes. :-)
[13:38:12] matthewd: IMO it's less about "they allow tampering" and more about "they don't work how you think they do, and that will bite you"
[13:38:50] uZiel: has joined #ruby
[13:39:09] dminuoso: matthewd: Perhaps this is just my C++ showing here. Thinking about contracts and invariants has been burned into my mind..
[13:39:23] yew: matthewd: I guess that is true since this works in ruby: ruby -e 'CONST=1; CONST=2; puts CONST'
[13:41:18] matthewd: Right. Ruby really doesn't do [enforced] contracts and invariants.. at best it does hurdles.
[13:44:01] spider-mario: has joined #ruby
[13:44:15] yew: has joined #ruby
[13:44:18] chouhoulis: has joined #ruby
[13:44:28] yew: dminuoso, matthewd: Okay, thanks a lot
[13:49:22] profsimm: has joined #ruby
[13:49:26] profsimm: Collection methods bug me. Why is it "remove" when I remove one item and "clear" when I remove all of them? Why is it "set" when I set one item and "replace" when I set all of them?
[13:52:49] jenrzzz: has joined #ruby
[13:53:24] dminuoso: profsimm: What class are you talking about?
[13:54:16] profsimm: dminuoso: Hash for ex.
[13:54:17] cschneid_: has joined #ruby
[13:54:23] hotpancakes: has joined #ruby
[13:56:02] matthewd: Words have meanings ¯\_(ツ)_/¯
[13:57:37] Jameser: has joined #ruby
[13:57:42] dminuoso: profsimm: Ruby was designed by Japanese folks. You should the names of some of the C functions.
[13:58:21] profsimm: dminuoso: sounds fun :/
[13:58:38] olivier__: has joined #ruby
[13:58:49] hotpanca_: has joined #ruby
[14:00:57] dminuoso: profsimm: Indeed. You randomly then get fun comments to help you make sense of it.
[14:01:01] dminuoso: https://github.com/ruby/ruby/blob/trunk/insns.def#L668-L670
[14:02:22] profsimm: dminuoso: deal with naming
[14:03:40] ineb: has joined #ruby
[14:06:02] dminuoso: profsimm: This is one of my favourite ones: https://github.com/ruby/ruby/blob/trunk/compile.c#L3275
[14:06:11] dminuoso: It compiles arrays!
[14:06:41] dminuoso: At other spots you then have func, func0, func1 doing kind of similar things.. until they dont..
[14:07:00] GodFather: has joined #ruby
[14:08:31] profsimm: dminuoso: the O_o part is when it calls "compile_array_" with the exact same arguments, but also NULL and 0
[14:08:49] Papierkorb: more like an artifact of C not supporting function overloading
[14:09:04] Papierkorb: Or in this case, default arguments
[14:09:22] dminuoso: Papierkorb: It's more actually. In a lot of cases it's a kind of wrapping..
[14:09:50] profsimm: So if you have 5 variants, you'd have compile_array_() compile_array__() compile_array___() compile_array____() compile_array_____()?
[14:09:54] dminuoso: Papierkorb: https://github.com/ruby/ruby/blob/trunk/compile.c#L4261-L4276
[14:09:56] dminuoso: for example
[14:10:13] chouhoulis: has joined #ruby
[14:10:23] Papierkorb: profsimm: Well, maybe for a shit naming convention :D
[14:10:37] dminuoso: Papierkorb: I have seen very clean C projects. Ruby is not one of them.
[14:10:50] dminuoso: Ruby breaks the shit out of ctags.
[14:11:21] theunraveler: has joined #ruby
[14:14:37] ar1a: has joined #ruby
[14:15:58] Xiti`: has joined #ruby
[14:16:32] t-recx: has joined #ruby
[14:17:00] Rapture: has joined #ruby
[14:18:20] oleo: has joined #ruby
[14:22:33] SteenJobs_: has joined #ruby
[14:23:05] enodata: has joined #ruby
[14:25:48] astrobunny: has joined #ruby
[14:28:02] bronson: has joined #ruby
[14:29:52] jhooker: has joined #ruby
[14:31:35] griffindy: has joined #ruby
[14:33:42] mrfoo: has joined #ruby
[14:34:11] govg: has joined #ruby
[14:34:49] haylon: has joined #ruby
[14:39:38] ledestin: has joined #ruby
[14:40:18] mikecmpbll: has joined #ruby
[14:40:26] gizmore: has joined #ruby
[14:40:53] ResidentBiscuit: has joined #ruby
[14:43:12] ramfjord: has joined #ruby
[14:45:41] anisha: has joined #ruby
[14:46:01] anisha_: has joined #ruby
[14:46:06] griffindy: has joined #ruby
[14:47:09] GinoMan: has joined #ruby
[14:49:04] polishdub: has joined #ruby
[14:51:44] yorickpeterse: dminuoso: works fine with universal-ctags
[14:52:08] yorickpeterse: I use it in combination with vim-gutentags, works really well
[14:53:05] cschneid_: has joined #ruby
[14:54:02] uZiel: has joined #ruby
[14:54:25] sgen: has joined #ruby
[14:55:08] lacuna: has joined #ruby
[14:55:21] t-recx: has joined #ruby
[14:58:59] dminuoso: yorickpeterse: Mmm, perhaps its just exuberant-ctags having issues?
[14:59:20] dminuoso: Though. I think Im using universal-ctags
[14:59:31] SteenJobs_: has joined #ruby
[15:00:16] TomyWork: has joined #ruby
[15:01:36] lacuna: has joined #ruby
[15:03:33] cschneid_: has joined #ruby
[15:04:04] cam27: has joined #ruby
[15:04:39] enterprisey: has joined #ruby
[15:07:58] Azure|dc: has joined #ruby
[15:08:23] phinxy: has joined #ruby
[15:09:11] cdg: has joined #ruby
[15:14:30] rgtk: has joined #ruby
[15:16:56] ergosum: has joined #ruby
[15:19:09] perniciouscaffei: has joined #ruby
[15:21:57] hutch34: has joined #ruby
[15:22:37] m27frogy: has joined #ruby
[15:23:23] kobain: has joined #ruby
[15:26:34] astrobunny: has joined #ruby
[15:28:31] PaulCapestany: has joined #ruby
[15:29:03] TomyLobo2: has joined #ruby
[15:29:14] bronson: has joined #ruby
[15:29:27] __Yiota: has joined #ruby
[15:29:47] dviola: has joined #ruby
[15:32:02] ramfjord: has joined #ruby
[15:37:14] jphase: has joined #ruby
[15:38:32] brent__: has joined #ruby
[15:40:31] jackjackdripper: has joined #ruby
[15:45:01] Renich: has joined #ruby
[15:47:10] mikecmpbll: has joined #ruby
[15:49:14] ozcanesen: has joined #ruby
[15:52:14] plujon: has joined #ruby
[15:53:04] cdg: has joined #ruby
[15:53:33] bruno-: has joined #ruby
[15:54:34] jenrzzz: has joined #ruby
[15:55:24] GinoMan: has joined #ruby
[15:57:47] GinoMan2440: has joined #ruby
[15:59:05] amclain: has joined #ruby
[16:02:48] rundor: has joined #ruby
[16:03:14] uZiel: has joined #ruby
[16:03:40] rippa: has joined #ruby
[16:15:46] gusrub: has joined #ruby
[16:19:03] alan_w: has joined #ruby
[16:20:10] high_fiver: has joined #ruby
[16:25:02] synthroid: has joined #ruby
[16:28:20] astrobunny: has joined #ruby
[16:28:45] ColeHub: has joined #ruby
[16:29:38] uZiel: has joined #ruby
[16:30:05] bronson: has joined #ruby
[16:32:58] VeryBewitching: has joined #ruby
[16:33:13] Psy-Q: has joined #ruby
[16:35:28] petruff: has joined #ruby
[16:35:59] rgtk: has joined #ruby
[16:37:35] jenrzzz: has joined #ruby
[16:37:35] jenrzzz: has joined #ruby
[16:38:33] mim1k: has joined #ruby
[16:39:27] matthewd: has joined #ruby
[16:41:18] ResidentBiscuit: I have an rspec stub that says `expect(user).to receive(:foo)`, but the code being tested is `user.try(:foo)`. When I run rspec, I get an error `received unexpected message :try with (:foo)` The code could change how exactly it calls that method, but the tests shouldn't break because of that. Is there something I need to enable to make this work? My google-fu hasn't found this issue out there.
[16:41:31] someuser: has joined #ruby
[16:46:09] baweaver: expect(user).to receive(:try).with(:foo)
[16:46:30] baweaver: It's mad that it's receiving a method it didn't expect (try)
[16:47:35] uZiel: has joined #ruby
[16:48:51] darkred: has joined #ruby
[16:49:42] ledestin: has joined #ruby
[16:50:56] perniciouscaffei: has joined #ruby
[16:51:02] ansraliant: has joined #ruby
[16:51:02] ansraliant: has joined #ruby
[16:51:38] darkred: has left #ruby: ("No boundaries on the net!")
[16:52:31] digitalnomad: has joined #ruby
[16:53:42] sarmiena_: has joined #ruby
[16:54:06] catbusters: has joined #ruby
[16:54:49] z0mbee: has joined #ruby
[16:56:57] eckhardt: has joined #ruby
[17:02:10] biberu: has joined #ruby
[17:03:13] __Yiota: has joined #ruby
[17:03:22] eightlimbed: has joined #ruby
[17:03:29] jenrzzz: has joined #ruby
[17:03:30] jenrzzz: has joined #ruby
[17:04:00] rabajaj: has joined #ruby
[17:04:47] sepp2k: has joined #ruby
[17:05:06] rabajaj: hey , can anyone look into https://paste.fedoraproject.org/paste/dLbmQ9jkMHupHW5W6CEMdQ
[17:05:07] synthroid: has joined #ruby
[17:05:14] rabajaj: i am trying to add this code to the models file, strip function is working as it should
[17:05:40] rabajaj: instead i am getting the entire string value that is present in search
[17:07:47] Antiarc: has joined #ruby
[17:10:40] apeiros: rabajaj: what?
[17:13:06] hutch34_: has joined #ruby
[17:13:41] claw: has joined #ruby
[17:17:32] dionysus69: has joined #ruby
[17:19:53] gothicsouth: has joined #ruby
[17:20:21] dviola: has joined #ruby
[17:29:12] AxelAlex: has joined #ruby
[17:29:37] lacuna: has joined #ruby
[17:30:28] dviola: has joined #ruby
[17:30:53] bronson: has joined #ruby
[17:34:45] postmodern: has joined #ruby
[17:35:18] kies: has joined #ruby
[17:35:52] rundor: has joined #ruby
[17:36:14] ColeHub: has joined #ruby
[17:38:48] __Yiota: has joined #ruby
[17:39:28] apeiros: rabajaj: ok, 30min no follow up. I guess it's not that important
[17:40:13] cdg_: has joined #ruby
[17:40:43] havenwood: rabajaj: If mind reading is what you're looking for, change `search =` (setting a local variable) to `self.search =` (using a setter method). That's my guess.
[17:41:23] rabajaj: havenwood, apeiros sorry i was afk and dint see your messages :(
[17:41:31] havenwood: ACTION appreciates instance variables
[17:41:48] rabajaj: havenwood, could you give an example of setter method ?
[17:41:56] havenwood: rabajaj: Does it work as you intend with?: self.search_attr = search.strip
[17:42:08] havenwood: rabajaj: #search_attr=
[17:42:32] havenwood: you're not intending to set a local variable there, right? because that's what you're doing.
[17:43:11] havenwood: rabajaj: search_attr = search.strip; defined?(search_attr) #=> "local-variable"
[17:43:28] havenwood: rabajaj: does that makes sense?
[17:43:30] coenraad: has joined #ruby
[17:43:47] rabajaj: i am trying to understand :P
[17:43:48] havenwood: rabajaj: This might be a better question for the #RubyOnRails channel.
[17:43:52] rabajaj: give me one sec
[17:44:00] havenwood: rabajaj: put a binding.pry in there and take a look
[17:44:55] rabajaj: havenwood, i dont want to set a local variable there but i have to right if i want to store the value of search.strip ?
[17:45:05] olivier__: has joined #ruby
[17:45:37] ColeHub: has joined #ruby
[17:46:36] havenwood: rabajaj: store it for what?
[17:47:00] rabajaj: so that i can append a space in the front
[17:47:02] havenwood: rabajaj: do you use it later in the method?
[17:47:10] havenwood: rabajaj: show more code
[17:47:33] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[17:47:50] rabajaj: https://github.com/theforeman/foreman_discovery/blob/develop/app/models/discovery_rule.rb is the file i wan to make changes in,
[17:48:02] rabajaj: there a search variable which contains the value filled in the search field, eg " name = rahul". i want to strip that value using `before_save` callback method
[17:48:24] pwned: has joined #ruby
[17:49:43] cam27: has joined #ruby
[17:49:45] havenwood: rabajaj: You're trying to strip the :search field before you save?
[17:51:03] havenwood: rabajaj: before_validation { self.search = search&.strip }
[17:51:21] havenwood: rabajaj: consider other options, think about when it's happening
[17:51:30] havenwood: rabajaj: ask in the #rubyonrails channel
[17:51:58] rabajaj: #RubyOnRails :Cannot join channel (+r) - you need to be identified with services :P
[17:52:01] duderonomy: has joined #ruby
[17:52:16] jackjackdripper: has joined #ruby
[17:52:17] havenwood: ?rails rabajaj
[17:52:17] ruby[bot]: rabajaj: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:52:18] havenwood: ?register rabajaj
[17:52:18] ruby[bot]: rabajaj: you need to be identified with NickServ, see `/msg NickServ HELP` or: https://freenode.net/kb/answer/registration
[17:52:38] rabajaj: cool thanks
[17:52:43] havenwood: you're welcome
[17:52:52] rabajaj: highly appreciated :)
[17:54:04] jenrzzz: has joined #ruby
[17:55:57] olivier__: has joined #ruby
[17:56:29] mikecmpbll: has joined #ruby
[17:59:24] t-recx: has joined #ruby
[18:00:00] jnollette: has joined #ruby
[18:01:32] synthroid: has joined #ruby
[18:04:43] skweek: has joined #ruby
[18:10:50] Tau: has joined #ruby
[18:13:41] ramfjord: has joined #ruby
[18:14:25] robouk: has joined #ruby
[18:14:44] Nowaker: has joined #ruby
[18:15:47] Nowaker: Howdy! ERB.new('').result_with_hash raises undefined method `result_with_hash' on me. Ruby 2.4.1. This method should be there according to documentation. Thoughts? https://ruby-doc.org/stdlib-2.4.1/libdoc/erb/rdoc/ERB.html#method-i-result_with_hash
[18:16:12] Nowaker: Just to show the version is correct:
[18:16:13] Nowaker: 2.4.1 :004 > ERB.new('').result_with_hash
[18:16:14] Nowaker: NoMethodError: undefined method `result_with_hash' for #<ERB:0x00000001deeaa8>
[18:16:58] petruff: has joined #ruby
[18:17:22] gusrub: has joined #ruby
[18:19:33] jenrzzz: has joined #ruby
[18:19:33] jenrzzz: has joined #ruby
[18:21:17] petto: has joined #ruby
[18:21:20] Nowaker: it appears it'll be part of Ruby 2.5 - https://docs.ruby-lang.org/en/trunk/NEWS.html
[18:21:31] Nowaker: so the docs are wrong
[18:22:53] yeticry: has joined #ruby
[18:23:22] cschneid_: has joined #ruby
[18:23:23] havenwood: Nowaker: I can confirm, doesn't work in 2.4 but does in 2.5 nightly: ERB.new('').result_with_hash({}) #=> ""
[18:23:35] havenwood: Docs got a bit ahead of themselves.
[18:24:19] havenwood: Nowaker: You might want to start an issue on the tracker: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
[18:24:20] havenwood: Nowaker: I'm sure a patch would be much appreciated.
[18:24:49] cagomez: has joined #ruby
[18:26:00] SeepingN: has joined #ruby
[18:30:18] tacoboy: has joined #ruby
[18:31:44] bronson: has joined #ruby
[18:31:57] astrobunny: has joined #ruby
[18:34:14] Rodya_: has joined #ruby
[18:34:52] cadillac_: has joined #ruby
[18:35:31] ansraliant: has joined #ruby
[18:35:31] ansraliant: has joined #ruby
[18:38:54] bluesocksyellowt: has joined #ruby
[18:41:00] nowhere_man: has joined #ruby
[18:41:23] lxsameer: has joined #ruby
[18:48:54] high_fiver: has joined #ruby
[18:53:47] alex``: has joined #ruby
[18:58:17] high_fiver: has joined #ruby
[19:03:23] newalexandria_: has joined #ruby
[19:03:55] cagomez: has joined #ruby
[19:04:11] sarmiena_: has joined #ruby
[19:08:29] olivier__: has joined #ruby
[19:08:46] olivier__: has joined #ruby
[19:09:34] yeticry: has joined #ruby
[19:09:40] KeyJoo: has joined #ruby
[19:09:43] graft: so i'm doing an http request using net::http (actually net::http::persistent), and the response object i'm getting back says it has already been read (i.e., if i call response.read_body with a block it complains that it was already read)
[19:10:20] graft: but i'm not reading it - who is? is this expected behavior, that the response from http.request will have already been read?
[19:11:12] wilbert: has joined #ruby
[19:11:45] petto: has joined #ruby
[19:12:03] graft: or a better question: what do you need to get an unread response (so i can read it in chunks)
[19:16:49] lacuna: has joined #ruby
[19:18:17] bluesocksyellowt: @graft afaik read_body is the way to do that. do you have code to share?
[19:19:32] cschneid_: has joined #ruby
[19:20:38] gigetoo: has joined #ruby
[19:21:39] nadir: has joined #ruby
[19:22:23] sepp2k: has joined #ruby
[19:23:10] lacuna: has joined #ruby
[19:23:54] GodFather: has joined #ruby
[19:25:23] t-recx: has joined #ruby
[19:28:02] graft: bluesocksyellowt: i'm using read_body, however read_body raises if it has already been called before, and i'm not sure why that's happening
[19:29:07] dionysus70: has joined #ruby
[19:29:08] bluesocksyellowt: reduced example would help.
[19:29:30] graft: blerm. lemme make a gist
[19:30:44] tAn: has joined #ruby
[19:32:32] bronson: has joined #ruby
[19:32:43] astrobunny: has joined #ruby
[19:33:05] tAn: has joined #ruby
[19:35:05] tAn: has joined #ruby
[19:35:11] Rodya_: has joined #ruby
[19:38:56] __Yiota: has joined #ruby
[19:40:18] tAn: has joined #ruby
[19:43:09] tAn: has joined #ruby
[19:48:40] tAn: has joined #ruby
[19:50:19] tao_: has joined #ruby
[19:51:28] tAn: has joined #ruby
[19:52:46] tao_: has joined #ruby
[19:54:07] tAn: has joined #ruby
[19:55:31] im0nde: has joined #ruby
[19:56:33] tAn: has joined #ruby
[19:59:23] olivier__: has joined #ruby
[19:59:49] synthroid: has joined #ruby
[20:00:34] tAn: has joined #ruby
[20:01:24] olivier__: has joined #ruby
[20:02:19] jenrzzz: has joined #ruby
[20:03:17] cschneid_: has joined #ruby
[20:03:33] tAn: has joined #ruby
[20:03:38] Rapture: has joined #ruby
[20:05:53] tAn: has joined #ruby
[20:06:17] nowhere_man: has joined #ruby
[20:06:32] hahuang65: has joined #ruby
[20:06:37] olivier__: has joined #ruby
[20:07:58] alex``: has joined #ruby
[20:09:51] tAn: has joined #ruby
[20:12:29] tAn: has joined #ruby
[20:14:32] brent__: has joined #ruby
[20:15:14] tAn: has joined #ruby
[20:15:30] ar1a: has joined #ruby
[20:15:45] brent__: has joined #ruby
[20:16:24] Trynemjoel: has joined #ruby
[20:16:34] rgtk: has joined #ruby
[20:17:53] tAn: has joined #ruby
[20:19:19] P1ro_: has joined #ruby
[20:19:25] cagomez: has joined #ruby
[20:19:38] tAn: has joined #ruby
[20:22:14] cschneid_: has joined #ruby
[20:22:16] A124: has joined #ruby
[20:22:39] tAn: has joined #ruby
[20:23:17] Trynemjoel: has joined #ruby
[20:23:40] tAn: has joined #ruby
[20:26:05] olivier__: has joined #ruby
[20:27:18] tAn: has joined #ruby
[20:28:05] ltem: has joined #ruby
[20:30:58] claw: has joined #ruby
[20:31:16] tAn: has joined #ruby
[20:31:27] rundor: has joined #ruby
[20:33:25] tAn: has joined #ruby
[20:33:30] astrobunny: has joined #ruby
[20:35:41] Rodya_: has joined #ruby
[20:39:06] sleepee: has joined #ruby
[20:47:35] moei: has joined #ruby
[20:48:39] cagomez: has joined #ruby
[20:48:49] ur5us: has joined #ruby
[20:50:36] ElFerna: has joined #ruby
[20:53:05] ramfjord: has joined #ruby
[20:55:23] sgen: has joined #ruby
[20:59:50] spider-mario: has joined #ruby
[20:59:59] mim1k: has joined #ruby
[21:04:01] olivier__: has joined #ruby
[21:11:28] rundor: has joined #ruby
[21:12:05] Jayson_Virissimo: has joined #ruby
[21:12:46] enodata: has left #ruby: ()
[21:15:11] rgtk: has joined #ruby
[21:15:16] tAn: has joined #ruby
[21:17:48] gothicsouth: has joined #ruby
[21:17:54] cschneid_: has joined #ruby
[21:21:33] sgen: has joined #ruby
[21:23:05] Rodya_: has joined #ruby
[21:25:21] psychicist__: has joined #ruby
[21:28:01] someuser: has joined #ruby
[21:30:01] tAn: has joined #ruby
[21:33:27] bronson: has joined #ruby
[21:35:14] _netglider_: has joined #ruby
[21:36:09] m27frogy: has joined #ruby
[21:36:12] netglider: has joined #ruby
[21:38:35] netglider: has joined #ruby
[21:43:25] milardovich: has joined #ruby
[21:45:35] ozcanesen: has joined #ruby
[21:47:55] milardovich: has joined #ruby
[21:48:02] gusrub: has joined #ruby
[21:48:22] tAn: has joined #ruby
[21:48:30] kobain: has joined #ruby
[21:48:35] netglider: has joined #ruby
[21:51:57] zenguy_pc: has joined #ruby
[21:53:29] ramfjord: has joined #ruby
[21:56:09] brent__: has joined #ruby
[21:56:40] nacsurte: has joined #ruby
[22:00:07] astrobunny: has joined #ruby
[22:00:14] jhooker: has joined #ruby
[22:00:35] joast: has joined #ruby
[22:01:44] nowhere_man: has joined #ruby
[22:03:25] AxelAlex: has joined #ruby
[22:06:52] tAn: has joined #ruby
[22:08:43] BTRE: has joined #ruby
[22:08:53] Trynemjoel: has joined #ruby
[22:09:15] nowhere_man: has joined #ruby
[22:12:03] cam27: has joined #ruby
[22:14:22] graft: nuts. seems like Net::HTTP will always read the response body unless you use a block
[22:14:41] graft: which is stupid behavior, i tell you
[22:15:06] graft: a block should be a convenience, not a requirement to produce a specific behavior
[22:15:08] jenrzzz: has joined #ruby
[22:15:08] jenrzzz: has joined #ruby
[22:15:52] graft: so now i have to pass a stupid block all the way down my method chain instead of just being able to return a Response object
[22:15:57] GodFather: has joined #ruby
[22:16:02] tAn: has joined #ruby
[22:19:02] ElFerna: has joined #ruby
[22:19:22] GodFather: has joined #ruby
[22:22:34] enodata: has joined #ruby
[22:25:07] elomatreb: graft: Can you #rewind the response?
[22:30:12] jhooker: has joined #ruby
[22:32:49] jdelStrother: has joined #ruby
[22:32:52] cagomez: has joined #ruby
[22:34:36] brent__: has joined #ruby
[22:34:45] bronson: has joined #ruby
[22:37:16] sepp2k: has joined #ruby
[22:37:38] darix: graft: some sample code might help
[22:39:21] jphase: has joined #ruby
[22:43:20] hutch34_: has joined #ruby
[22:44:41] gigetoo: has joined #ruby
[22:44:56] graft: elomatreb: nah, my whole purpose is to avoid reading it into memory in the first place
[22:50:59] ElFerna: has joined #ruby
[22:51:56] grant: has joined #ruby
[22:56:51] Radar: hahuang65: du bist gut?
[22:56:59] Radar: ACTION is not here
[23:00:24] mim1k: has joined #ruby
[23:01:17] astrobunny: has joined #ruby
[23:02:24] AX31_A13X: has joined #ruby
[23:03:25] ecuanaso: has joined #ruby
[23:09:17] cagomez: has joined #ruby
[23:10:53] cagomez: has joined #ruby
[23:12:13] uZiel: has joined #ruby
[23:13:03] hays: is there a better way to express this pattern https://bpaste.net/show/60567127fb83
[23:14:18] Papierkorb: hays: yes, `only_cool_ones = foo.select{|x| x['baz'] == value}`
[23:14:41] cadillac__: has joined #ruby
[23:15:07] Papierkorb: &ri Enumerable#select hays
[23:15:07] `derpy: hays: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-select
[23:15:07] GodFather: has joined #ruby
[23:15:17] Papierkorb: For more information on that method, see the docs ^
[23:15:27] SeepingN: has joined #ruby
[23:16:22] digitalnomad: has joined #ruby
[23:19:41] hays: does this seem reasonable? wrapping that in a hash definition basically https://bpaste.net/show/75d21f4fd042
[23:20:09] dcunit3d: has joined #ruby
[23:20:19] hays: or is it better to define the hash first and then populate it outside the definition
[23:21:16] Papierkorb: hays: For this, I'd prefer to write it on a single line. If that's too hard to read, it's the sign that you should filter first and assign later
[23:21:33] cagomez: has joined #ruby
[23:27:21] jenrzzz: has joined #ruby
[23:27:21] jenrzzz: has joined #ruby
[23:30:02] tAn: has joined #ruby
[23:30:16] kkiero: has joined #ruby
[23:34:05] alveric2: has joined #ruby
[23:36:12] robouk: has joined #ruby
[23:37:06] digitalnomad: has joined #ruby
[23:41:48] kith: has joined #ruby
[23:42:45] frmendes: has joined #ruby
[23:44:18] veex: has joined #ruby
[23:44:21] umaaji: has joined #ruby
[23:49:43] bronson: has joined #ruby
[23:50:30] emers2n: has joined #ruby
[23:52:09] emers2n: I want to decrement a string like so "hello" = ["ello", "llo", "lo", "o"]. Is there a built in function to do this?
[23:52:25] facest: has joined #ruby
[23:52:32] jenrzzz_: has joined #ruby
[23:54:51] dcunit3d: has joined #ruby
[23:58:12] alex``: has joined #ruby
[23:58:41] GodFather: has joined #ruby
[23:59:07] emers2n: @emers2n Looks like not - just need a for loop and a splice
[23:59:41] havenwood: >> require 'abbrev'; Abbrev.abbrev(['hello']).keys
[23:59:42] ruby[bot]: havenwood: # => ["hello", "hell", "hel", "he", "h"] (https://eval.in/835437)
[23:59:47] havenwood: emers2n: There is.