<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
<al2o3-cr>
nchambers: you'd need =~ to match regex
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
<nchambers>
yeah, just realized, thanks
<al2o3-cr>
nchambers: and for ^(sub)\A \z(sub)$
<nchambers>
what is (sub) and \A \z ?
<al2o3-cr>
\A|\z is match string not a line.
<nchambers>
ah
<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.) =)
<baweaver>
Recent freehand from a bit earlier today
<baweaver>
Working on another one that dwarfs it
samort7 has quit [Read error: Connection reset by peer]
cd has joined #ruby
<al2o3-cr>
gonna watch it now =)
elphe has joined #ruby
<al2o3-cr>
baweaver: thought it was live. m mmmm
<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. =_)
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
To be fair I did spend years as a kid wishing I could draw well :P
elphe has quit [Ping timeout: 246 seconds]
<al2o3-cr>
baweaver: you should take up art and programming dude! U W G A W
jmcgnh has quit [Remote host closed the connection]
jmcgnh has joined #ruby
apeiros has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
cagomez has quit [Remote host closed the connection]
jmcgnh has quit [Remote host closed the connection]
jmcgnh has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcalla has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
jcalla has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
Fusl has quit [Remote host closed the connection]
Fusl has joined #ruby
<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?
<al2o3-cr>
methods on a class/module are still instance methods on the class Class.
zacts has quit [Quit: WeeChat 2.2]
za1b1tsu has joined #ruby
<nchambers>
al2o3-cr: how do i access them from Class?
k0mpa has quit [Write error: Connection reset by peer]
Fusl has quit [Read error: Connection reset by peer]
<nchambers>
ah nmd I see
whysthatso has joined #ruby
apeiros has joined #ruby
Fusl has joined #ruby
apeiros has quit [Ping timeout: 268 seconds]
whysthatso has quit [Quit: whysthatso]
asphyxia has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
exchgr` has joined #ruby
exchgr has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
MoritaShinobu has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
jdeen has joined #ruby
<jdeen>
Hi There...
<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?
<baweaver>
OptionParser and Slop are fairly standard.
<baweaver>
Both can be used for "large applications" though you have to remember that a CLI is an interface
<baweaver>
your actual code should be able to run without it
<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?
<baweaver>
ARGV
<jdeen>
ARGV, yah that should do... thanks going to give it a try
<baweaver>
There are some that use a views type system
Dbugger has quit [Remote host closed the connection]
apeiros has joined #ruby
elcontrastador has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
whysthatso has joined #ruby
reber has joined #ruby
apeiros has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
jcalla has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ruby
apeiros has joined #ruby
jcalla has joined #ruby
apeiros has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
elphe has joined #ruby
jdeen has quit [Quit: Page closed]
<dachi>
Good morning
lxsameer has joined #ruby
jcalla has quit [Ping timeout: 272 seconds]
nchambers has quit [Ping timeout: 252 seconds]
jcalla has joined #ruby
jcalla has quit [Ping timeout: 272 seconds]
despai has joined #ruby
nchambers has joined #ruby
jcalla has joined #ruby
phaul has joined #ruby
jdeen has joined #ruby
Shorty6 has joined #ruby
stooj_ is now known as stooj
jcalla has quit [Ping timeout: 244 seconds]
jcalla has joined #ruby
TheBloke has quit [Read error: Connection reset by peer]
TheBloke has joined #ruby
xfbs has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
kaleido has quit [Ping timeout: 252 seconds]
mangold has joined #ruby
jcalla has quit [Ping timeout: 268 seconds]
gix has joined #ruby
jcalla has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
jcalla has quit [Ping timeout: 252 seconds]
despai has quit [Quit: ...]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
jcalla has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
venmx has joined #ruby
despai has joined #ruby
dellavg_ has joined #ruby
leitz has joined #ruby
despai has quit [Quit: ...]
nchambers has quit [Ping timeout: 268 seconds]
ua has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
AJA4350 has joined #ruby
conta has joined #ruby
jetchisel has joined #ruby
despai has joined #ruby
Wojnar has joined #ruby
ayonkhan has joined #ruby
despai has quit [Quit: ...]
ayonkhan has quit [Client Quit]
despai has joined #ruby
despai has quit [Read error: Connection reset by peer]
kapil____ has joined #ruby
ua has joined #ruby
clemens3 has joined #ruby
leitz has quit [Quit: Leaving]
Wojnar has quit [Ping timeout: 244 seconds]
nchambers has joined #ruby
ua has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
nchambers has quit [Ping timeout: 246 seconds]
ayonkhan has joined #ruby
ayonkhan has quit [Ping timeout: 252 seconds]
ua has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
ayonkhan has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.3]
MoritaShinobu has quit [Quit: Leaving]
nchambers has joined #ruby
Shorty6 has quit [Quit: Quitting]
elphe has quit [Ping timeout: 252 seconds]
ayonkhan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 250 seconds]
Wojnar has joined #ruby
reber__ has joined #ruby
rem_ has joined #ruby
reber has quit [Ping timeout: 268 seconds]
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
reber has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
reber__ has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
nchambers has quit [Ping timeout: 250 seconds]
mangold has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
lxsameer has joined #ruby
jcalla has quit [Ping timeout: 246 seconds]
jcalla has joined #ruby
houhoulis has joined #ruby
elphe has joined #ruby
jetchisel has quit [Ping timeout: 272 seconds]
elphe has quit [Ping timeout: 244 seconds]
rem_ has quit [Quit: Page closed]
jetchisel has joined #ruby
Wojnar has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 244 seconds]
nchambers has joined #ruby
za1b1tsu has joined #ruby
nchambers has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
nexraf1 has joined #ruby
ellcs has joined #ruby
jcalla has quit [Ping timeout: 268 seconds]
kaleido has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
jcalla has joined #ruby
<za1b1tsu>
ANyone installed ruby with ansible?
hurricanehrndz has joined #ruby
nchambers has joined #ruby
ellcs has quit [Ping timeout: 252 seconds]
nexraf1 has quit [Quit: WeeChat 2.2]
k0mpa has joined #ruby
ellcs has joined #ruby
nchambers has quit [Ping timeout: 240 seconds]
za1b1tsu has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
clemens3 has quit [Remote host closed the connection]
mangold has quit [Quit: This computer has gone to sleep]
zleap has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
<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?
<havenwood>
zxq2: Show us what you have so far?
<havenwood>
zxq2: Can you say more about what "initialize during instantiation" means?
<havenwood>
zxq2: Passing a hash to a constructor with values seems reasonable. What issue are you running into trying that?
<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.
<havenwood>
zxq2: Have you tried doing that? What seems to be not working? Can you show the code?
<zxq2>
i wanted to know whether it's possible before trying
Sup3rLurk has quit [Quit: WeeChat 2.2]
SuperL4g has joined #ruby
SuperL4g has quit [Remote host closed the connection]
SuperL4g has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
bak1an has joined #ruby
bak1an has quit [Client Quit]
jokester has quit [Ping timeout: 252 seconds]
nchambers has joined #ruby
jetchisel has joined #ruby
despai has joined #ruby
Dimik has joined #ruby
despai has quit [Quit: ...]
RougeR has joined #ruby
despai has joined #ruby
despai has quit [Quit: ...]
despai has joined #ruby
patr0clus has joined #ruby
kapil____ has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
conta has quit [Quit: conta]
elphe has joined #ruby
nchambers has quit [Ping timeout: 245 seconds]
elphe has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
desperek has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
venmx has quit [Ping timeout: 245 seconds]
venmx has joined #ruby
elphe has joined #ruby
whysthatso has quit [Ping timeout: 260 seconds]
elphe has quit [Ping timeout: 268 seconds]
dbugger_ has joined #ruby
patr0clus has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
za1b1tsu has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
despai has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
scrooloose_ has joined #ruby
scrooloose_ is now known as scrooloose
za1b1tsu has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 244 seconds]
za1b1tsu has joined #ruby
elphe has joined #ruby
ellcs has quit [Ping timeout: 260 seconds]
elphe has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
orbyt_ has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
<dachi>
good night fellas
elphe has joined #ruby
dbugger_ has quit [Remote host closed the connection]
za1b1tsu has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 272 seconds]
roshanavand has quit [Quit: Gone planting!]
jokester has joined #ruby
elphe has joined #ruby
jokester has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
jokester has joined #ruby
RougeR has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
jokester has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 252 seconds]
phaul has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
elphe has joined #ruby
roshanavand has quit [Remote host closed the connection]
agent_white has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
jokester has joined #ruby
claudiuinberlin has joined #ruby
elphe has joined #ruby
gigetoo has joined #ruby
jokester has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
elphe has quit [Ping timeout: 272 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ur5us has joined #ruby
lytol has joined #ruby
RougeR has joined #ruby
jokester has joined #ruby
zleap has quit [Quit: WeeChat 2.2]
cagomez has joined #ruby
elphe has joined #ruby
desperek has quit [Quit: xoxo]
cow[moo] has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
roshanavand has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
reber has quit [Remote host closed the connection]
jasmith has quit [Quit: Leaving]
nchambers has joined #ruby
elphe has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
dellavg_ has quit [Ping timeout: 268 seconds]
elphe has quit [Ping timeout: 272 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
roshanavand has joined #ruby
elphe has joined #ruby
cagomez has quit [Ping timeout: 272 seconds]
beeman has quit []
elphe has quit [Ping timeout: 244 seconds]
roshanavand has quit [Remote host closed the connection]