#ruby - 04 November 2018
« Back 1 day Forward 1 day »
[01:25:39] nchambers: can someone tell me why this doesn't work? "42.09" == /^\d+(\.\d+)?$/ # the regex works fine on regex101.com, but in irb that returns false
[01:33:54] al2o3-cr: \A and \z to match the start and end of the string, ^ and $ match the start/end of a line. (straight from the docs.) =)
[03:12:09] al2o3-cr: baweaver: i hope your still recreating in art, because blimey, that is talent right under hands. (believe)
[03:14:18] baweaver: Yep, working on integrating elements of elvish art into some of the talk slides
[03:16:55] al2o3-cr: i seen your drawing on twitch.tv; seriously, that is a talent some people could only wish for!
[03:29:43] al2o3-cr: baweaver: i swear to god, that doesn't come by so easily. i'd love to have the ability to draw like that. oh wow. baweaver, you probably don't realise how gifted you are. =_)
[03:39:08] baweaver: This one is going to take forever to do though: https://twitter.com/keystonelemur
[05:18:12] nchambers: I know I cna store methods in a variable with: foo = method(:bar), but is it possible to store a method stored in a module or class?
[06:19:21] JDeen: I am interested in making a command line app... some thing inspired by Heroku cli app... Is there any lib that I can use that will help with the option parsing (I guess OptionParser wouldn't help) in a complex application?
[06:20:08] baweaver: Both can be used for "large applications" though you have to remember that a CLI is an interface
[06:27:29] JDeen: What I am needing is to nest... the app is `timer`... I would like to have `timer clients --help` `timer clients:add --help` kind of an behavior. I guess I will have to check the user input ($1 var I guess) and based on it to load an appropriate OptionParser config?
[16:35:10] zxq2: hi, i have a bindata::record which i would like to initialize during instantiation, how do i do this? can i pass a hash to constructor with the values?
[16:37:09] havenwood: zxq2: Passing a hash to a constructor with values seems reasonable. What issue are you running into trying that?
[16:38:17] zxq2: i have a class which inherits from bindata::record. in the class there are fields which i would like to provide values for when instantiating the class.
[16:39:03] havenwood: zxq2: Have you tried doing that? What seems to be not working? Can you show the code?