havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.5.1, 2.4.4, 2.3.7, 2.6.0-preview2: https://www.ruby-lang.org | Paste 4+ lines of text to https://gist.github.com | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
r29v has quit [Quit: r29v]
schneider has quit [Ping timeout: 276 seconds]
alex`` has quit [Quit: WeeChat 2.1]
schneider has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
jcarl43 has quit [Quit: WeeChat 2.2]
schneider has quit [Ping timeout: 240 seconds]
lubekpl has joined #ruby
houhoulis has joined #ruby
sagax has quit [Remote host closed the connection]
zachk has joined #ruby
chussenot has quit [Ping timeout: 244 seconds]
zachk has quit [Changing host]
zachk has joined #ruby
schneider has joined #ruby
za1b1tsu_ has quit [Ping timeout: 260 seconds]
lubekpl has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
RougeR has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 276 seconds]
ur5us has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Fr4n has quit [Quit: Fr4n]
Azure has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
mistergibson has quit [Quit: Leaving]
quobo has quit [Quit: Connection closed for inactivity]
schneider has quit [Ping timeout: 276 seconds]
dellavg has quit [Ping timeout: 240 seconds]
eckhardt_ has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
jasmith has joined #ruby
orbyt_ has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
Azure has quit [Ping timeout: 240 seconds]
salasrod has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
Azure has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
nicht has quit [Ping timeout: 256 seconds]
zachk has quit [Quit: Leaving]
schneider has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
dviola has joined #ruby
href has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 244 seconds]
nicht has joined #ruby
nicht has quit [Max SendQ exceeded]
nicht has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving]
schneider has joined #ruby
Puffball has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
schneider has joined #ruby
donofrio has joined #ruby
maryo has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
maryo has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
ogres has joined #ruby
Freshnuts has quit [Ping timeout: 260 seconds]
nicht has quit [Quit: Leaving]
schneider has quit [Ping timeout: 256 seconds]
tdy has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
dviola has quit [Quit: WeeChat 2.2]
schneider has quit [Ping timeout: 264 seconds]
sylario has quit [Quit: Connection closed for inactivity]
mynameisdebian has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
mynameisdebian has joined #ruby
sameerynho has quit [Ping timeout: 268 seconds]
konsolebox has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
konsolebox has joined #ruby
erratic has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
akaiiro has joined #ruby
schneider has joined #ruby
chussenot has quit [Ping timeout: 240 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 244 seconds]
schneider has joined #ruby
braincrash has quit [Quit: bye bye]
schneider has quit [Ping timeout: 264 seconds]
braincrash has joined #ruby
g- has quit [Quit: WeeChat 1.6]
schneider has joined #ruby
g- has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
c0ncealed2 has quit [Read error: Connection reset by peer]
c0ncealed2 has joined #ruby
schneider has joined #ruby
dendazen has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
plujon has quit [Remote host closed the connection]
otlfac has quit []
tobiasvl has quit [Ping timeout: 245 seconds]
hphat^ has joined #ruby
akaiiro has quit [Ping timeout: 244 seconds]
schneider has joined #ruby
akaiiro has joined #ruby
apparition47 has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
dviola has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
akaiiro has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
kapil___ has joined #ruby
juiko has joined #ruby
juiko has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 240 seconds]
schleppel has joined #ruby
AJA4350 has quit [Remote host closed the connection]
schneider has joined #ruby
sauvin has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
schneider has joined #ruby
houhoulis has quit [Remote host closed the connection]
schneider has quit [Ping timeout: 264 seconds]
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
<Alec> This is a real longshot but there are 600 of you here and the chat is dead.
akaiiro has joined #ruby
<Alec> There's this book called "Functional Analysis: Vol 1" - "A gentle introduction" by Dzung Minh Ha - great book but not applicable to probably anyone else here - unfortunately it's long out of print and the versions I can find are hyper-expensive (>£150 damaged book that'll take weeks to get here) - I have reason to believe a PDF of it exists, the publisher's website may be dead and has these weird locked PDFs and I'm Linux, Printer and those A4-k
<Alec> indles so it wont work.
<Alec> I've got a copy in storage, so one book in like 45-50 boxes 50cm x 45cm x 50cm boxes all books - they're going to want me dead if I take them up on their "access items" thing,
<Alec> If anyone can find a PDF of this I owe you massively; so much so it becomes economical for me to kill you before you have an heir who may inherit the debt, or you and your heir.
<Alec> Thanks
tdy has quit [Ping timeout: 240 seconds]
graphene has quit [Remote host closed the connection]
<Alec> I've been after this for months, it should go without saying I'm desperate to be posting here. I've even tried a few "specialist forums"
<Alec> I'll stop now though
dendazen has quit [Read error: Connection reset by peer]
maciuszek has quit []
graphene has joined #ruby
maciuszek has joined #ruby
lubekpl has joined #ruby
lubekpl has quit [Ping timeout: 240 seconds]
<mozzarella> you have access to a locked pdf?
ogres has quit [Quit: Connection closed for inactivity]
<Alec> mozzarella: no but I could get it if it was guaranteed (within reason) I could read it (there are "test PDFs" in the link, according to what it says if I can read those I can read what I buy)
<Alec> I wish the author hadn't chosen such a shitty and tiny publisher (jackpot on both!) because the book is actually *extremely* good - just no one has bloody heard of it, I found it by dumb luck in the library.
tdy has joined #ruby
white_lilies has joined #ruby
<Alec> Also the author is dead so no appealing to him (hence the "vol 1" over 10 years ago)
Freshnuts has joined #ruby
chussenot has joined #ruby
schneider has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
DoubleMalt has joined #ruby
nertzy has joined #ruby
rrichardsr3 has joined #ruby
siery has joined #ruby
chussenot has quit [Ping timeout: 260 seconds]
<siery> Hey! Is there somebody still using rake to handle your dependencies? Why are there so strng effort on runing bundler if ruby have such a nice task handler already?
rrichardsr3 has quit [Quit: He who dares .... wins.]
manakanapa has joined #ruby
white_lilies has quit [Ping timeout: 276 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dviola> siery: they kind of do different things, right? bundler is supposed to only manage dependencies and nothing more, rake is more like a general purporse make-like tool
<dviola> I guess there is nothing stopping someone from writing a Rakefile that will call git clone for all the libs they use
<dviola> now whether that is a good idea or not, I don't know, bundler also does other things like locking the versions of gems you use, etc
<siery> dviola: Right, but I see that people prefer using bundler more then rake. I been wandering if there is some reason to this, because bundler is much more complicated in my opinion. I know that bundler can handle pushing gems to the server, right? I am new to ruby, so just wander what wold be better to use for the game I'm writing. Do I need to use bundler to push gems to the rubygems repo?
amar has joined #ruby
<dviola> siery: maybe because of Rails, since it default to using bundler and creates a Gemfile in your project's directory
<dviola> siery: bundler and the Gemfile is how you install most gems in Rails, etc
reber has joined #ruby
<siery> But this is not the only interface (besides browser) to publish your gems to rubygems?
amar has quit [Ping timeout: 276 seconds]
<siery> I guess you can just do it with gem.. so that's probably a stupid question.
<dviola> not sure about that, but I don't think you need bundler for that
r29v has joined #ruby
<dviola> nice question though
<dviola> siery: stay around and someone else might be able to answer your other questions, I have to go
<siery> dviola: Thank you. I just ask cause that will mean I can just create a task in rake like :push to automate my commits and still use just one interface for handle all my package related work.
dviola has quit [Quit: WeeChat 2.2]
chussenot has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
howdoi has joined #ruby
r29v has quit [Quit: r29v]
nowhere_man has quit [Read error: Connection reset by peer]
Guest22605 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest36752
nowhere_man has joined #ruby
hfp_work has quit [Quit: bye]
suukim has joined #ruby
alem0lars has joined #ruby
siery has quit [Quit: WeeChat 1.6]
za1b1tsu_ has joined #ruby
chussenot has quit [Ping timeout: 276 seconds]
alem0lars_ has joined #ruby
Krebsgewehr has joined #ruby
alem0lars has quit [Ping timeout: 276 seconds]
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
siery has joined #ruby
alem0lars_ has quit [Quit: Leaving]
alem0lars has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
klaas has joined #ruby
siery has quit [Quit: WeeChat 1.6]
jamesaxl has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
schneider has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
konsolebox has quit [Ping timeout: 240 seconds]
TinkerT has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
TinkerT has joined #ruby
lubekpl has joined #ruby
lubekpl has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
lele has joined #ruby
akaiiro has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
claudiuinberlin has joined #ruby
chussenot has joined #ruby
schneider has quit [Ping timeout: 240 seconds]
schneider has joined #ruby
milanj has quit [Quit: This computer has gone to sleep]
SCHAPiE has quit [Ping timeout: 240 seconds]
dellavg has joined #ruby
maryo has joined #ruby
SCHAPiE has joined #ruby
sameerynho has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
Eiam has quit [Ping timeout: 256 seconds]
milanj has joined #ruby
milanj has quit [Remote host closed the connection]
milanj has joined #ruby
Freshnuts has quit [Quit: Leaving]
Furai has quit [Quit: WeeChat 2.2]
jenrzzz has quit [Ping timeout: 244 seconds]
Furai has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
User458764 has joined #ruby
schneider has quit [Ping timeout: 248 seconds]
tty has quit [Quit: tty]
suukim has quit [Quit: Konversation terminated!]
mynameisdebian has joined #ruby
bga57 has quit [Quit: Leaving.]
bga57 has joined #ruby
konsolebox has joined #ruby
chussenot has quit [Quit: chussenot]
quobo has joined #ruby
agent_white has quit [Quit: godnatt]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
maryo has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
maryo has joined #ruby
despai has joined #ruby
plp_ has joined #ruby
despai has quit [Ping timeout: 240 seconds]
amar has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
amar has quit [Ping timeout: 276 seconds]
jinie has joined #ruby
amar has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mynameisdebian has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
plp_ has quit [Quit: plp_]
amar_ has joined #ruby
Mike11 has joined #ruby
maryo has quit [Ping timeout: 276 seconds]
amar has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
conta has joined #ruby
suukim has joined #ruby
maryo has joined #ruby
plp_ has joined #ruby
maryo has quit [Read error: Connection reset by peer]
alex`` has joined #ruby
User458764 has joined #ruby
alem0lars has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
alem0lars has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
mynameisdebian has joined #ruby
alem0lars has quit [Ping timeout: 244 seconds]
lunarkitty7 has quit [Ping timeout: 256 seconds]
<Alec> mozzarella: any news?
Inline has quit [Quit: Leaving]
lunarkitty7 has joined #ruby
darkhanb has quit [Ping timeout: 240 seconds]
Asher has quit [Read error: Connection reset by peer]
Asher has joined #ruby
<plp_> is there a way to expose class instance variables to instances of the class but not anything else?
<plp_> but i want them only accessible from instances of the class
shinnya has joined #ruby
<plp_> and from the class instance itself
beefjoe has joined #ruby
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
Mike11 has quit [Ping timeout: 240 seconds]
amar has joined #ruby
amar_ has quit [Ping timeout: 244 seconds]
mzo has joined #ruby
phredus has joined #ruby
Krebsgewehr has quit [Remote host closed the connection]
Inline has joined #ruby
VladGh has quit [Remote host closed the connection]
<apeiros> plp_: you… don't expect us to read a whole thread to understand what kind of solution you might have found in it, do you?
VladGh has joined #ruby
<plp_> right. sorry. they pretty much just suggest adding attr_accessor, attr_reader, or attr_writer for the class instance var
<plp_> but that exposes the class instance vars not just to the instances of the class
mzo has quit [Ping timeout: 276 seconds]
jetchisel has quit [Ping timeout: 264 seconds]
<konsolebox> plp_: how is an instance var accessed besides "instances of the class"?
<konsolebox> i'm getting an idea of what you really want, but i'd rather have you clarify it first
<plp_> class instance vars not instance vars
<konsolebox> plp_: maybe you need to demonstrate it with a code
<plp_> not really sure how to word it better
<konsolebox> bpaste.net
alex`` has quit [Ping timeout: 256 seconds]
<konsolebox> or gist
<plp_> since the terms can be pretty confusing
<plp_> sure
<konsolebox> i agree, hence it needs code
alex`` has joined #ruby
guille-moe has joined #ruby
conta has quit [Quit: conta]
<apeiros> plp_: you want to keep the class state private except for instance of that class, as I understand it
<apeiros> *instances
<apeiros> and I think there's no clean way to do that. @@class_variables do that, but sadly they're shared beyond class + instances. they're also shared across descendants.
<apeiros> what you could do is this:
<apeiros> class Foo; class << self; attr_reader :class_state; private :class_state; end; private def class_state; self.class.send(:class_state); end; end
<apeiros> now you have a private instance method to access the class state. it uses send to bypass the privacy setting of the class method.
guille-moe has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
mozzarella has quit [Remote host closed the connection]
lubekpl has joined #ruby
<ruby[bot]> plp_: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<plp_> woops
<apeiros> konsolebox: ^ guess that was @ you
<apeiros> plp_: anyway, check my suggestion. it only slightly deviates from what you already have.
<plp_> yeah, it was for konsolebox
graphene has quit [Remote host closed the connection]
dellavg has quit [Ping timeout: 240 seconds]
graphene has joined #ruby
milanj has quit [Quit: This computer has gone to sleep]
<plp_> i didn't know you could use private that way
<plp_> oh wait
<plp_> misread your code
jasmith has quit [Quit: Leaving]
mozzarella has joined #ruby
<konsolebox> plp_: i think apeiros's suggestion is the best solution you can have. you can't restrict the class's singleton method for itself, and allow the instance to have special access to it.
nowhere_man has quit [Read error: Connection reset by peer]
<apeiros> plp_: that way? you mean `private def foo`? it's only since def returns a symbol instead of nil. sometime around ruby 2.1 I think?
<apeiros> I prefer it over awkwardness in indenting :)
<plp_> apeiros: i misread your code haha
beefjoe has quit [Remote host closed the connection]
<plp_> i thought you didn't put "end"s
<apeiros> ah
<plp_> didn't notice the line was wrapped
<plp_> anyway
<apeiros> I should add a !unroll command or somesuch to ruboto so it creates a gist with ; replaced by newlines and proper indent.
<plp_> thanks!
<apeiros> yw
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
nowhere_man has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mynameisdebian has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
rippa has joined #ruby
gheegh has joined #ruby
AJA4350 has joined #ruby
Puffball has quit [Remote host closed the connection]
despai has joined #ruby
despai has quit [Client Quit]
guyyoghurt has quit [Quit: Connection closed for inactivity]
sarna has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
eGGshke has joined #ruby
ferr has quit [Ping timeout: 264 seconds]
bruce_lee has quit [Ping timeout: 268 seconds]
alem0lars has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
lubekpl has quit [Ping timeout: 276 seconds]
houhoulis has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Puffball has joined #ruby
InfinityFye has joined #ruby
plutes has joined #ruby
InfinityFye has left #ruby ["Leaving"]
DLSteve has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
Asher has joined #ruby
Asher has quit [Ping timeout: 248 seconds]
KaffeeJunky123 has joined #ruby
milanj has joined #ruby
FernandoBasso has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
alem0lars has quit [Ping timeout: 260 seconds]
<plp_> part
plp_ has left #ruby [#ruby]
<KaffeeJunky123> I have a method that will read user input in a bunch of different units and I've been looking for an easy way to deal with the different units. Basically I just need to be able to call the right input verification function for the unit, is using a hash with unit=>Proc a good solution for this kind of problem?
eGGshke has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
ectos has joined #ruby
ferr has joined #ruby
alem0lars has joined #ruby
quobo has joined #ruby
<apeiros> KaffeeJunky123: sounds sane, yes
<apeiros> alternatively have a Verification base class, let unit based classes inherit from it and then have a unit => class hash.
<KaffeeJunky123> apeiros: but that would require a good amount of additional lines
Mrgoose2 has quit [Ping timeout: 240 seconds]
<apeiros> maybe. depends on the complexity of your verifiers. it might save you some lines if you have a lot of repetition which can be saved through inheritance.
milanj has quit [Quit: This computer has gone to sleep]
Mrgoose has joined #ruby
<apeiros> anyway, you know the problem domain best, so you'll have to decide what fits your problem better. a unit => proc hash is certainly very versatile anyway. it might make sense to start out that way anyway.
<KaffeeJunky123> apeiros: It's a simple application that calculates ml amounts for different compounds of an e-liquid for vaping
<apeiros> aaahaha, ok. nice :)
<KaffeeJunky123> well, the way it is now you'll have to load it in irb
jxweng has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
<KaffeeJunky123> apeiros: would you like to test it? if so what pastebind do you prefer
claudiuinberlin has joined #ruby
jinie has joined #ruby
<apeiros> I prefer gist. I'm not vaping, so not too much interested, sorry :)
<apeiros> I can take a look at your code if you want, though
<apeiros> I'll probably only point out minor stylistic things :)
RougeR has quit [Ping timeout: 276 seconds]
<KaffeeJunky123> Any help is welcome :)
psychicist__ has joined #ruby
<apeiros> print_amounts I'd probably make the arguments kwargs. that way invocations of it are much easier to read and understand what the passed values are about.
<apeiros> `input = gets.chomp` this can raise in case of ctrl-d (ending input)
<apeiros> `ml.to_i` this will not prevent invalid input
<KaffeeJunky123> apeiros: so I should wrap it in a try and handle exceptions
<apeiros> >> "hello there".to_i
* apeiros pokes ruby[bot]
<KaffeeJunky123> apeiros: I'm doing ml.to_i.to_s == ml for verification
Xeago has quit [Ping timeout: 268 seconds]
ruby[bot] has joined #ruby
<apeiros> I'd suggest Integer(ml, 10)
<apeiros> >> "hello there".to_i
<ruby[bot]> apeiros: # => 0 (https://eval.in/1040177)
<KaffeeJunky123> apeiros: oh, so Integer supports units?
<apeiros> bases
tdy has quit [Ping timeout: 276 seconds]
<apeiros> >> Integer("0123")
<ruby[bot]> apeiros: # => 83 (https://eval.in/1040179)
<apeiros> >> Integer("0123", 10)
<ruby[bot]> apeiros: # => 123 (https://eval.in/1040180)
<apeiros> same for val.to_f btw., I'd use Float(val) instead
<apeiros> re "I should wrap" - yes, that's one way. or you can `input = gets&.chomp`, input will be nil in case of end-of-input.
<KaffeeJunky123> apeiros: I didn't know about that way to use the ampersand, or is it not an ampersand in that context?
conta has joined #ruby
jxweng has quit [Quit: leaving]
<apeiros> KaffeeJunky123: &. is called "safe navigator" and works like ., but it won't raise a NoMethodError if the receiver is nil
<apeiros> >> nil&.whateverdoesntmatter
<ruby[bot]> apeiros: # => nil (https://eval.in/1040183)
<apeiros> hence nil&.chomp will just return nil, even though nil isn't a string and hence doesn't have chomp
<KaffeeJunky123> apeiros: that's neat
<apeiros> gist upcoming. gotta test first.
<KaffeeJunky123> apeiros: now you've got to start vaping too, so you can test if the end result is okay ;-)
<apeiros> na, I don't even smoke
<apeiros> maybe once pure thc vapes are available and legal.
<apeiros> gist contains a couple of ideas. make use of them as you see fit.
<apeiros> btw., to get stuff aligned, if you use sublime text, there's a plugin "valign". makes that really simple.
<KaffeeJunky123> apeiros: pure thc? why would you want to get rid of the other sweet stuff?
<KaffeeJunky123> apeiros: I use nvim most of the time, trying to migrate to spacemacs thou
<apeiros> because I only take that stuff for the inebriation
<apeiros> alcohol's effect is limited and the side-effects at the level I'd need it are unpleasant
<KaffeeJunky123> apeiros: states that have legalized it should have high quality thc e-liquids
<apeiros> I'm not US based :)
<apeiros> and while possession is largely legal here, selling isn't
<KaffeeJunky123> well, you can always make your own extract based liquid
<apeiros> I'd have to grow weed myself. I don't see doing that in the near future.
<apeiros> also we're OT :) (there's #ruby-offtopic for that)
<KaffeeJunky123> apeiros: I would've suggested taking this conversation to a more private place
<apeiros> lol @ your real name btw. :) glasnost!
<KaffeeJunky123> What! I have been uncovered
<KaffeeJunky123> I really should start to learn more about rubies OOP features
<apeiros> btw., `Integer(ml, 10) rescue false` is quick and dirty and I absolutely don't recommend on using this pattern
<apeiros> it can hide severe bugs as it indiscriminately suppresses all exceptions below StandardException
<apeiros> (talking about the suffix `rescue false` part, just in case)
<KaffeeJunky123> apeiros: I'm doing Integer(ml, 10)&.to_s == ml
<KaffeeJunky123> is that any better
<apeiros> depends on what you want to allow. will fail e.g. for "00123"
maryo has joined #ruby
<apeiros> ask me again in april next year. I'll tell you the name of a gem then :D
<KaffeeJunky123> Are you working on a unit realted gem?
phredus has quit [Remote host closed the connection]
phredus has joined #ruby
<KaffeeJunky123> apeiros: I think I have a bug in the calculation somewhere
<apeiros> KaffeeJunky123: no, on a validation & adaptation gem. it's part of a bigger project, though.
<KaffeeJunky123> yay I found the bug, now it looks like it's actually working
bathtub_shark has quit [Ping timeout: 260 seconds]
mozzarella has quit [Ping timeout: 260 seconds]
Inline has quit [Quit: Leaving]
bathtub_shark has joined #ruby
Inline has joined #ruby
cpallares has quit [Ping timeout: 260 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
cpallares has joined #ruby
howdoi has joined #ruby
claudiuinberlin has quit [Max SendQ exceeded]
Asher has joined #ruby
vutral|kali has quit [Changing host]
vutral|kali has joined #ruby
maryo has quit [Read error: Connection reset by peer]
maryo has joined #ruby
Asher has quit [Ping timeout: 276 seconds]
alex`` has quit [Quit: WeeChat 2.1]
despai has joined #ruby
croberts has quit [Ping timeout: 245 seconds]
venmx has joined #ruby
croberts has joined #ruby
milanj has joined #ruby
maryo_ has joined #ruby
alex`` has joined #ruby
Azure has quit [Ping timeout: 268 seconds]
maryo has quit [Ping timeout: 256 seconds]
maryo_ has quit [Read error: Connection reset by peer]
maryo_ has joined #ruby
sarna has quit [Quit: Connection closed for inactivity]
houhoulis has quit []
guille-moe has joined #ruby
beefjoe has joined #ruby
houhoulis has joined #ruby
alfiemax has joined #ruby
shinnya has joined #ruby
houhoulis has quit [Remote host closed the connection]
beefjoe has quit [Ping timeout: 260 seconds]
despai has quit [Quit: ...]
lubekpl has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
lubekpl has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
maryo_ has quit [Ping timeout: 244 seconds]
Asher has joined #ruby
Asher has quit [Ping timeout: 260 seconds]
iamnix has joined #ruby
banisterfiend has joined #ruby
conta has quit [Quit: conta]
suukim has quit [Quit: Konversation terminated!]
Guest36752 has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
Nicmavr is now known as Guest88931
za1b1tsu_ has quit [Quit: WeeChat 2.1]
white_lilies has joined #ruby
beefjoe has joined #ruby
S007 has quit [Quit: Quit]
white_lilies has quit [Ping timeout: 256 seconds]
mozzarella has joined #ruby
S007 has joined #ruby
tdy has joined #ruby
href has joined #ruby
Mia has quit [Read error: Connection reset by peer]
mozzarella has quit [Remote host closed the connection]
<Demos[m]> totally off topic: does anyone know of a font like fira code but not monospace?
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
venmx has quit [Ping timeout: 256 seconds]
SeepingN has joined #ruby
qolq has joined #ruby
eGGshke has joined #ruby
qolq has quit [Quit: qolq]
User458764 has joined #ruby
fmcgeough has joined #ruby
beefjoe has quit [Remote host closed the connection]
eGGshke has quit [Client Quit]
User458764 has quit [Client Quit]
eGGshke has joined #ruby
gheegh has quit [Ping timeout: 276 seconds]
fmcgeough has quit [Quit: fmcgeough]
tty has joined #ruby
fmcgeough has joined #ruby
NightMonkey has quit [Ping timeout: 255 seconds]
SeepingN has quit [Ping timeout: 260 seconds]
NightMonkey has joined #ruby
iamnix has quit [Quit: ZZZzzz…]
fmcgeough has quit [Client Quit]
\void has joined #ruby
mikecmpbll has joined #ruby
Asher has joined #ruby
KaffeeJunky123 has left #ruby [#ruby]
tdy has quit [Ping timeout: 260 seconds]
suukim has joined #ruby
samosaphile has joined #ruby
samosaphile has left #ruby [#ruby]
samosaphile has joined #ruby
qolq has joined #ruby
qolq has quit [Remote host closed the connection]
qolq has joined #ruby
milanj has quit [Quit: This computer has gone to sleep]
zleap has joined #ruby
zleap has joined #ruby
zleap has quit [Changing host]
graphene has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 240 seconds]
icantc has quit [Ping timeout: 240 seconds]
graphene has joined #ruby
Xeago has joined #ruby
icantc has joined #ruby
mozzarella has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
Xeago has joined #ruby
akaiiro has joined #ruby
schneider has joined #ruby
akaiiro has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
zachk has joined #ruby
jhack has joined #ruby
jhack has left #ruby [#ruby]
graphene has quit [Remote host closed the connection]
zachk has quit [Changing host]
zachk has joined #ruby
graphene has joined #ruby
amar has quit [Ping timeout: 276 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
<apeiros> Demos[m]: I use deja-vu for coding, I use the monospace variant, but iirc it has non-monospace variants too. no idea whether that's "like fira" (no idea either how a font would qualify as that)
jhack has joined #ruby
jhack has left #ruby [#ruby]
<Demos[m]> it has ligatures that make like ==> into a joined arrow
<Demos[m]> I use Noto Sans UI (or Noto Sans Display on windows, not sure why the name differs)
noobineer has joined #ruby
mikkel- has quit [Ping timeout: 260 seconds]
<apeiros> Demos[m]: aaah, yeah, that's somehow nice.
noobineer has quit [Ping timeout: 240 seconds]
salasrod has joined #ruby
akaiiro has joined #ruby
milanj has joined #ruby
white_lilies has joined #ruby
suukim has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
Dimik has joined #ruby
scrptktty has joined #ruby
scrptktty has quit [Client Quit]
scrptktty has joined #ruby
Freshnuts has joined #ruby
modin has quit [Ping timeout: 264 seconds]
krdprog has joined #ruby
lomex has joined #ruby
mikkel- has joined #ruby
phredus has quit [Remote host closed the connection]
lubekpl has joined #ruby
schneider has quit [Ping timeout: 248 seconds]
krdprog has quit [Quit: Leaving]
Mike11 has joined #ruby
schneider has joined #ruby
Freshnuts has quit [Quit: Leaving]
Freshnuts has joined #ruby
salasrod has quit [Quit: Leaving]
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
_aeris_ has quit [Ping timeout: 256 seconds]
qolq has quit [Quit: qolq]
alfiemax has quit [Remote host closed the connection]
_aeris_ has joined #ruby
dviola has joined #ruby
salasrod has joined #ruby
zleap has quit [Quit: WeeChat 2.1]
lubekpl has quit [Ping timeout: 240 seconds]
iamnix has joined #ruby
iamnix has quit [Ping timeout: 240 seconds]
mynameisdebian has joined #ruby
salasrod_ has joined #ruby
salasrod_ has quit [Client Quit]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 2.1]
tdy has joined #ruby
jhack has joined #ruby
lypsis has quit [Quit: ZNC - http://znc.in]
akaiiro has quit [Ping timeout: 244 seconds]
lypsis has joined #ruby
modin has joined #ruby
bipul has quit [Quit: ZNC 1.6.3+deb1+xenial0 - http://znc.in]
bipul has joined #ruby
bipul has quit [Changing host]
bipul has joined #ruby
despai has joined #ruby
alex`` has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
ellcs has joined #ruby
jhack has left #ruby [#ruby]
Mike11 has quit [Quit: Leaving.]
despai has quit [Quit: ...]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 240 seconds]
Asher1 has joined #ruby
Asher has quit [Ping timeout: 268 seconds]
Azure has joined #ruby
Zaab1t has joined #ruby
Azure has quit [Ping timeout: 276 seconds]
Asher1 is now known as Asher
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ogres has joined #ruby
Azure has joined #ruby
white_lilies has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
mynameisdebian has quit [Remote host closed the connection]
jamiejackson has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
<jamiejackson> i'm trying to iterate over a hash inline to build a string: https://gist.github.com/jamiejackson/176cf94c7b1766fd7f0f92601ab16586
<jamiejackson> what am i doing wrong?
alex`` has quit [Quit: WeeChat 2.1]
ellcs has quit [Ping timeout: 265 seconds]
jamiejackson has quit [Ping timeout: 256 seconds]
<konsolebox> yet another one leaving too quickly
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
graphene has quit [Remote host closed the connection]
despai has joined #ruby
samosaphile has quit [Ping timeout: 252 seconds]
graphene has joined #ruby
<apeiros> also probably another one broken by php's "everything is a template, so just echo"
llua has quit [Quit: <Rudolph> shell code is what greycat reads to kids when he tucks them in]
despai has quit [Ping timeout: 260 seconds]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 264 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
orbyt_ has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
biberu has quit []
reber has quit [Remote host closed the connection]
InfinityFye has joined #ruby
InfinityFye has quit [Client Quit]
llua has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
mikecmpbll has quit [Quit: inabit. zz.]
_whitelogger has joined #ruby
mynameisdebian has joined #ruby
mynameisdebian has quit [Ping timeout: 260 seconds]
redlegion has quit [Max SendQ exceeded]
redlegion has joined #ruby
white_lilies has joined #ruby
nowhere_man has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
psychicist__ has quit [Ping timeout: 244 seconds]
nowhere_man has joined #ruby