« Back to channel list

#ruby-offtopic - 16 August 2018

« Back 1 day Forward 1 day »
[00:14:03] eckhardt_: has joined #ruby-offtopic
[03:01:45] mroutis: has joined #ruby-offtopic
[06:12:59] apeiros: has joined #ruby-offtopic
[07:49:43] apeiros: has joined #ruby-offtopic
[08:06:44] mikecmpbll: has joined #ruby-offtopic
[10:32:36] Sigyn: has joined #ruby-offtopic
[14:04:10] mikecmpb_: has joined #ruby-offtopic
[14:52:03] mikecmpbll: has joined #ruby-offtopic
[15:39:08] mroutis: has joined #ruby-offtopic
[16:59:51] apeiros_: has joined #ruby-offtopic
[17:08:21] apeiros_: 1990: I read the playboy because of its articles
[17:08:30] apeiros_: 2020: I watch the animes because of the story
[17:19:11] eckhardt_: has joined #ruby-offtopic
[18:10:00] al2o3-cr: say you're in a a pry session and you cd into self, do you get two local variables named str and version?
[18:15:37] al2o3-cr: hmm, weird.
[18:16:54] al2o3-cr: str = "--simple-prompt" version = ">= 0.a"
[18:17:19] apeiros: (local):~ ▶ pry
[18:17:19] apeiros: [1] pry(main)> cd self
[18:17:19] apeiros: [2] pry(main):1> local_variables
[18:17:21] apeiros: => [:__, :_, :_dir_, :_file_, :_ex_, :_pry_, :_out_, :_in_, :title]
[18:18:19] ruby[bot]: al2o3-cr: # => undefined method `cd' for main:Object (NoMethodError) ...check link for more (https://eval.in/1048281)
[18:18:22] al2o3-cr: self.methods: inspect to_s
[18:18:24] al2o3-cr: locals: _ __ _dir_ _ex_ _file_ _in_ _out_ _pry_ str version
[18:18:34] ruby[bot]: al2o3-cr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[18:18:34] ruby[bot]: al2o3-cr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[18:18:41] apeiros: your >>'s mess with the bot :-p
[18:18:55] apeiros: methods are not local variables
[18:19:06] al2o3-cr: locals underneath
[18:19:27] apeiros: I have no idea what that's supposed to mean
[18:19:46] al2o3-cr: apeiros: locals: _ __ _dir_ _ex_ _file_ _in_ _out_ _pry_ str version
[18:20:22] apeiros: ah, the messed up formatting didn't help. I see what you mean. ls also lists local variables.
[18:20:48] apeiros: maybe you have something installed which extends pry?
[18:21:39] al2o3-cr: i was wondering if it was something to do with ~/.pryrc but no.
[18:22:09] al2o3-cr: it must be something i've installed.
[18:23:52] al2o3-cr: but i do have an alias for pry; alias pry='pry --simple-prompt' and that's what str holds.
[18:24:26] al2o3-cr: but version i've no clue :(
[18:37:46] mroutis: has joined #ruby-offtopic
[18:48:00] mikecmpbll: has joined #ruby-offtopic
[20:46:21] baweaver: al2o3-cr: Oi, add me to recognized users so I can tell you fun news things
[20:47:30] al2o3-cr: baweaver: usermode again?
[20:47:52] baweaver: ACTION is amusingly an IRC mode n00b
[20:48:34] al2o3-cr: don't really need +g with +R
[21:06:28] eckhardt_: has joined #ruby-offtopic
[21:12:13] eckhardt_: has joined #ruby-offtopic
[23:54:41] mroutis: has joined #ruby-offtopic