<fizzycola>
havenwood: in sense if you have: a = BasicObject.new; a.is_a?(BasicObject)
<havenwood>
#instance_of?
<fizzycola>
doesn't cut it
<fizzycola>
class Foo < BasicObject; end
<fizzycola>
now what?
<havenwood>
right, just pseudocode nit
<fizzycola>
sure
<havenwood>
But... why? Show me something that isn't.
<havenwood>
I get it doesn't play nice, but why?
<fizzycola>
problem in repl's.
<havenwood>
ah
<fizzycola>
you cannot rely on 'a' having is_a?
<havenwood>
gotcha
pwnd_nsfw has joined #ruby
<havenwood>
fizzycola: I guess BasicObject is just too primitive for the REPL use in question.
<havenwood>
It's not an object-proper. It's too basic.
<havenwood>
fizzycola: BasicObject is really, really basic.
<fizzycola>
yeah. "sure" wasn't meant to be snarky btw. it was "sure valid". but sometimes you need to say "give me anything, and tell me if it is a anything".
<havenwood>
fizzycola: Yeah, totally fair. BasicObject was added later as a primordial primitive.
<fizzycola>
yep.
gizmore|2 has joined #ruby
pwnd_nsfw has quit [Quit: Leaving]
gizmore has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
apparition has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
yCrazyEdd has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
loxxibot has joined #ruby
dinfuehr has joined #ruby
loxxibot is now known as Intaler
jphase has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
Intaler has quit [Client Quit]
enterprisey has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
imode has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt has joined #ruby
ule has quit [Quit: reboot]
orbyt_ has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
CrazyEddy has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
qualityaddict has quit [Quit: Leaving]
Guest68997 has quit [Remote host closed the connection]
enterprisey has joined #ruby
alnewkirk has joined #ruby
cschneid_ has joined #ruby
dkam has quit [Quit: Be back later ...]
dkam has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkam_ has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
Freshnuts has joined #ruby
mim1k has joined #ruby
d^sh has joined #ruby
dkam has quit [Read error: Connection reset by peer]
badrsahla has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
duderonomy has joined #ruby
dkam__ has joined #ruby
John__ has quit [Read error: Connection reset by peer]
mson has joined #ruby
dkam_ has quit [Read error: Connection reset by peer]
duper has joined #ruby
alnewkirk has joined #ruby
Cohedrin_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
alnewkirk has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
badrsahla has joined #ruby
elcontrastador has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 240 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
tenakoe has joined #ruby
Technodrome has joined #ruby
dc3 has quit [Ping timeout: 240 seconds]
gusrub has quit []
tenakoe has quit [Client Quit]
cschneid_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
zapata has quit [Ping timeout: 255 seconds]
mjolnird has quit [Quit: Leaving]
Ropeney has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
fullstack has quit [Ping timeout: 240 seconds]
badrsahla has joined #ruby
CrazyEddy has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
fullstack has joined #ruby
CrazyEddy has joined #ruby
badrsahla has quit [Ping timeout: 255 seconds]
zapata has joined #ruby
workmad3 has joined #ruby
jrafanie has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
swirlsMD has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
jrafanie has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ap4y has joined #ruby
knight33 has joined #ruby
swirlsMD has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jenrzzz_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
whippythellama has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
orbyt_ has joined #ruby
badrsahla has joined #ruby
swirlsMD has joined #ruby
whippythellama has joined #ruby
swirlsMD has quit [Read error: Connection reset by peer]
jgt has joined #ruby
badrsahla has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
elcontrastador has quit [Ping timeout: 252 seconds]
stilbruch has joined #ruby
lektrik has joined #ruby
rhyselsmore has joined #ruby
alnewkirk has joined #ruby
CrazyEddy has quit [Ping timeout: 248 seconds]
ek926m has joined #ruby
DEac- has quit [Ping timeout: 240 seconds]
RushPL has quit [Ping timeout: 255 seconds]
ablackack has quit [Ping timeout: 276 seconds]
contradictioned_ has quit [Ping timeout: 264 seconds]
S007 has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
gix has quit [Ping timeout: 240 seconds]
dc3 has joined #ruby
ek926m has quit [Ping timeout: 260 seconds]
ablackack has joined #ruby
RushPL has joined #ruby
contradictioned has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
gix has joined #ruby
ramfjord has joined #ruby
DEac- has joined #ruby
mim1k has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 240 seconds]
helapu has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
code_zombie has quit [Ping timeout: 252 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moei has joined #ruby
__Yiota has joined #ruby
pilne has quit [Quit: Quitting!]
impermanence has joined #ruby
<impermanence>
silly question. If I'm using bundler...does that I mean I can forego "requires" in my code?
<impermanence>
seems like not
mson has quit [Quit: Connection closed for inactivity]
badrsahla has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
impermanence: nope
<impermanence>
havenwood: k.
__Yiota has quit [Client Quit]
<havenwood>
impermanence: Rails gets some autorequire with: Bundler.require(*Rails.groups)
<havenwood>
It's best practice to just `require` when applicable at the top of your files.
<basket>
impermanence: Bundler helps make sure that whatever gems you want to use are installed where your app can find them, for example if you wanted to install it on another computer. It's still up to your app code to actually load them.
<impermanence>
ah, I see. makes sense.
badrsahla has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
badrsahla has joined #ruby
cschneid_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
badrsahla has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
alfiemax has quit [Remote host closed the connection]
uneeb has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
fullstack has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
fullstack has joined #ruby
CrazyEddy has joined #ruby
dc3 has joined #ruby
orbyt_ has joined #ruby
anisha has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
dn` has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
tvw has joined #ruby
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
cschneid_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joufflu has quit [Read error: Connection reset by peer]
cschneid_ has quit [Ping timeout: 252 seconds]
b100s has joined #ruby
<b100s>
hi2all; what is :foo is? where i can get brief info about it?
<b100s>
kind of constant?
djbkd has quit [Remote host closed the connection]
SeepingN has joined #ruby
conta has joined #ruby
djbkd has joined #ruby
mjolnird has joined #ruby
<basket>
b100s: It's a symbol; a kind of constant, yes
uZiel has quit [Remote host closed the connection]
Bock has joined #ruby
jgt has joined #ruby
uZiel has joined #ruby
megamos has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
<b100s>
basket, are there some doc with usefull usecases of symbols?
Qiong``` is now known as Qiong
dionysus69 has joined #ruby
Dimik has joined #ruby
cschneid_ has joined #ruby
<basket>
b100s: I'm not sure of one offhand. They're useful whenever you need a constant 'tag' for something. Like you might have a Card class and create an instance like Card.new(rank: :queen, suit: :clubs). That actually uses four symbols, :rank, :ace, :suit, and :clubs. 'x: 1' in a hash means ':x => 1', they're very commonly used as hash keys so they even got special syntax
lacour has quit [Quit: Leaving]
dc3 has quit [Ping timeout: 255 seconds]
badrsahla has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
<b100s>
basket, thank you
<basket>
b100s: They're also used for 'names' of things in Ruby, like for example when you say 'attr_accessor :x', you use a symbol for the name x, or if you wanted to know if you could call f on some object o, you would do o.respond_to?(:f)
arvindsaik has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
gil_ has quit [Ping timeout: 248 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
rhyselsmore has joined #ruby
arvindsaik has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
gil_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<baweaver>
b100s / basket: Think of them as code-only labels
<b100s>
baweaver, do you have link to good article axplaining it with good usefull examples?
<baweaver>
I'll see if I can find one
<baweaver>
If not I'll just write one
<baweaver>
You could also think of them as just values like integers: 1, 2, 3
<baweaver>
It just _is_, and doesn't need to be instantiated
<baweaver>
Though the secret is that pretty well every single place you use a symbol you could use a string
<dminuoso>
baweaver: Regarding your question about Array#===, is it possible that #include? is not the only reasonable thing to do?
<baweaver>
Honestly most of us do it for saving a few characters
<baweaver>
dminuoso: Considering the way all the other ===s work, it kinda is the only reasonable thing
<dminuoso>
baweaver: But isn't #| also a reasonable implementation?
<baweaver>
All of which denote membership of a set, domain, or category
<dminuoso>
baweaver: That's my point. For an orderet set, "being a subset of" is the more general notion than "is element of". You could argue that "is element of" is the same as "the singleton set containing `e` is subset of"
<baweaver>
ok, fork it
<baweaver>
Array#=== : if v.is_a?(Array) self | other else self.include?(other)
<dminuoso>
You just made me click `fork` on github :|
<baweaver>
conditional fork
<dminuoso>
Heh.
<baweaver>
Oh! Oh!
<baweaver>
Remember Proc#=== ?
<baweaver>
...and how case uses it in the background?
basket has quit [Read error: Connection reset by peer]
<dminuoso>
baweaver: well for Proc#=== its just assuming that the proc is a predicate right?
<baweaver>
Mapping from A to B, but not the point of that statement
<baweaver>
You can use Ramda in Ruby Case statements to do some pretty interesting things
<baweaver>
...or put it in a query method abusing ===
arquebus has joined #ruby
<matthewd>
Yeah, I like the integer comparison... 100 : "100" :: :foo : "foo"
ferr has joined #ruby
Bish has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
Bish has joined #ruby
cschneid_ has joined #ruby
neuraload has joined #ruby
basket has joined #ruby
linduxed has quit [Ping timeout: 248 seconds]
hs366 has joined #ruby
megamos has quit [Ping timeout: 255 seconds]
<fizzycola>
oh in that case Array#=== makes sense. i had the logic backwards anyway. it makes no difference for Module#===.
cschneid_ has quit [Ping timeout: 252 seconds]
<dminuoso>
baweaver: In the end Im starting to dislike this magic of #=== because it has no specific notion attached to it.
<fizzycola>
Keep Ruby Weird.
<fizzycola>
to_proc is also strange.
mtkd has quit [Read error: Connection reset by peer]
<matthewd>
"matches in a case-like way"
mtkd has joined #ruby
<dminuoso>
matthewd: And that's very non-specific. I mean if case allowed me to actually pick the method being used, such as: case a, :include? -> then it would feel cleaner.
<matthewd>
I think I could mount a defensible argument that Array#===(v) should be `any? {|el| el === v }`
<fizzycola>
that'd be cool, but case is a keyword - so probablly.. case a :include?
kernelPaniq has joined #ruby
<dminuoso>
fizzycola: It could even use #to_proc, allowing you to stuff an arbitrary lambda in there.
kernelPaniq has quit [Remote host closed the connection]
<matthewd>
dminuoso: I won't disagree... occasionally I'd really like to be able to use case with ==, e.g. when deciding between classes. But at a certain point the visual complexity looks very close to "just use `if`"
<matthewd>
I take that back.. you could probably do `case == in expr; when .. etc`
<fizzycola>
really like that lang
Bish has joined #ruby
cschneid_ has joined #ruby
imode has quit [Ping timeout: 248 seconds]
<fizzycola>
nice
<fizzycola>
looks good
sysvalve has joined #ruby
simmaniac has joined #ruby
badrsahla has joined #ruby
agimenez has joined #ruby
<matthewd>
I'm not sure `in` makes a *lot* of sense, but there aren't exactly a plethora of keywords to choose from
TomyWork has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
simmaniac has quit [Ping timeout: 248 seconds]
sysvalve has quit [Ping timeout: 248 seconds]
agimenez has quit [Client Quit]
badrsahla has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
ana_ has joined #ruby
milardovich has joined #ruby
<fizzycola>
not sure. i like it.
<fizzycola>
but just.. def foo.===(other); end.
<fizzycola>
if you really want to
jenrzzz has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fizzycola>
baweaver: rescue keyword uses it too
<fizzycola>
exceptional ruby mentions it
<dminuoso>
matthewd: Oh yeah, I'd love to see ruby picking a new keyword `in`. Im sure there's only a handful of gems that use identifiers such as `in`/`out` :o
mark_66 has joined #ruby
<dminuoso>
09:05 matthewd | I think I could mount a defensible argument that Array#===(v) should be `any? {|el| el === v }`
<dminuoso>
matthewd: What exactly is your line of reasoning?
<dminuoso>
Why would it be any? rather than all?
<dminuoso>
Interestingly Ox0dea pushed for any?/all? actually accepting a non-proc argument, which would do that exactly.
<dminuoso>
So you could do: ary.all?(Integer) for example
<basket>
dminuoso: in is already a keyword
<dminuoso>
o.o
<dminuoso>
oh, for/in
workmad3 has joined #ruby
S007 has joined #ruby
<matthewd>
dminuoso: hah, if I was picking a word, it would've been a better fit for the purpose :P
<matthewd>
dminuoso: `when a, b` == [a,b].any?.
<fizzycola>
dminuoso: you seem a bit unhappy with ruby cos most the time your reasoning seems to be based around 'i wish ruby was more like X' (usually elixir)
alfiemax has joined #ruby
<fizzycola>
or haskell
<fizzycola>
but ruby is ruby
quobo has joined #ruby
<fizzycola>
some things in ruby are just awesome. especially that you can go anything at runtime (almost i guess) with no boundaries or rules.
<fizzycola>
do*
workmad3 has quit [Ping timeout: 248 seconds]
aclark has quit [Quit: Ping timeout (120 seconds)]
<fizzycola>
no pun intended
TheMoonMaster has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
<fizzycola>
the closer to haskell or elixir you go, the less of that is true, and that's not good imo
guille-moe has joined #ruby
Muz has quit [Ping timeout: 260 seconds]
Muz has joined #ruby
<fizzycola>
so borrowed ideas adapted to the ruby model are best i think
<dminuoso>
fizzycola: The thing you get to realize when you work in an ML influenced language, is how non-intrusive static typing can be. In fact I would argue, that type correctness is something you implicitly assume anyway.
jgt has quit [Ping timeout: 240 seconds]
<dminuoso>
fizzycola: Ruby has lots of neat ideas, but when you dig deep enough, the language has some really bizarre quirks.
<fizzycola>
won't ruby3 have that optionally
<dminuoso>
I mean just take super/super() for example.
<fizzycola>
static types
<fizzycola>
sure. full of them. full of bizarre quirks
<fizzycola>
that's where 'Keep Ruby Weird' came from, i thought
FooMunki has quit [Quit: FooMunki]
TheMoonMaster has joined #ruby
cschneid_ has joined #ruby
<fizzycola>
prob less than perl tho =]
guardianx has joined #ruby
jaruga has quit [Quit: jaruga]
cschneid_ has quit [Ping timeout: 258 seconds]
alfiemax has quit [Remote host closed the connection]
badrsahla has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has quit [Ping timeout: 255 seconds]
Immune has quit [Ping timeout: 255 seconds]
cschneid_ has joined #ruby
Burgestrand has joined #ruby
jidar has quit [Quit: WeeChat 1.9.1]
sysvalve has joined #ruby
neuraload has quit [Read error: Connection reset by peer]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
cdg has quit [Read error: Connection reset by peer]
neuraload has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jolamb has quit [Ping timeout: 240 seconds]
theRoUS has joined #ruby
Silthias1 has joined #ruby
Qiong has quit [Ping timeout: 252 seconds]
jolamb has joined #ruby
Silthias2 has joined #ruby
foxxx0 has quit [Quit: WeeChat 1.9.1]
Silthias has quit [Ping timeout: 255 seconds]
Silthias1 has quit [Ping timeout: 240 seconds]
uneeb has quit [Read error: Connection reset by peer]
Qiong` has joined #ruby
ferr has quit [Quit: WeeChat 1.9.1]
uneeb has joined #ruby
mim1k has joined #ruby
foxxx0 has joined #ruby
claudiuinberlin has joined #ruby
FooMunki has joined #ruby
FooMunki has quit [Client Quit]
Mia has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
bronson_ has joined #ruby
fumck has joined #ruby
sunrunner20_ has joined #ruby
Cyrus1 has joined #ruby
agit0 has joined #ruby
b10s_ has joined #ruby
b10s_ has left #ruby [#ruby]
ironcame1 has joined #ruby
ammar_ has joined #ruby
techn1cs_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
b100s has quit [Read error: Connection reset by peer]
aufi_ has joined #ruby
bigkevmcd has joined #ruby
Zarthus_ has joined #ruby
WebDawgII has joined #ruby
kitallisii has joined #ruby
gf3_ has joined #ruby
TvL2386_ has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
biox_ has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
fumk has quit [Read error: Connection reset by peer]
sunrunner20 has quit [Read error: Connection reset by peer]
bronson has quit [Read error: Connection reset by peer]
Cyrus has quit [Read error: Connection reset by peer]
WebDawg has quit [Ping timeout: 248 seconds]
ujjain has quit [Ping timeout: 248 seconds]
Exagone313 has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Quit: ZNC 1.7.x-nightly-20170908-e86efb08 - https://znc.in]
Lyubo1 has quit [Ping timeout: 248 seconds]
SCHAPiE has quit [Ping timeout: 248 seconds]
irick has quit [Ping timeout: 248 seconds]
gf3 has quit [Ping timeout: 248 seconds]
Zarthus has quit [Ping timeout: 248 seconds]
jnollette has quit [Ping timeout: 248 seconds]
TinkerTyper has joined #ruby
irick has joined #ruby
ineb has quit [Ping timeout: 248 seconds]
cgfbee has quit [Ping timeout: 248 seconds]
TvL2386 has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 248 seconds]
ap4y has quit [Ping timeout: 248 seconds]
bauruine has quit [Ping timeout: 248 seconds]
ammar has quit [Ping timeout: 248 seconds]
mattp_ has quit [Ping timeout: 248 seconds]
techn1cs has quit [Ping timeout: 248 seconds]
bitemyapp has quit [Ping timeout: 248 seconds]
ironcamel has quit [Ping timeout: 248 seconds]
kitallis has quit [Ping timeout: 248 seconds]
biox has quit [Ping timeout: 248 seconds]
jan4 has quit [Ping timeout: 248 seconds]
jnollette has joined #ruby
bitemyapp has joined #ruby
ineb has joined #ruby
uneeb has quit [Ping timeout: 248 seconds]
Zarthus_ is now known as Zarthus
kitallisii is now known as kitallis
jnollette has quit [Changing host]
jnollette has joined #ruby
sunrunner20_ is now known as sunrunner20
gf3_ is now known as gf3
mattp_ has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
Exagone313 has joined #ruby
cgfbee has joined #ruby
workmad3 has joined #ruby
SCHAPiE has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
bauruine has joined #ruby
cschneid_ has joined #ruby
baweaver has joined #ruby
baweaver is now known as Guest66309
milardovich has quit [Remote host closed the connection]
Tempesta has quit [Quit: See ya!]
fullstack has quit [Ping timeout: 255 seconds]
Papierkorb has quit [Ping timeout: 255 seconds]
bigkevmcd has quit [Ping timeout: 246 seconds]
mtkd has quit [Ping timeout: 246 seconds]
jaruga has joined #ruby
rcs has quit [Ping timeout: 255 seconds]
ErhardtMundt has quit [Ping timeout: 255 seconds]
fullstack has joined #ruby
bigkevmcd has joined #ruby
Papierkorb has joined #ruby
mtkd has joined #ruby
ErhardtMundt has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
nikivi has quit [Ping timeout: 255 seconds]
rcs has joined #ruby
rgr has joined #ruby
Tempesta has joined #ruby
guardianxx has joined #ruby
nikivi has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
alnewkirk has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Quit: dionysus69]
lxsameer has joined #ruby
dionysus69 has joined #ruby
jan4 has joined #ruby
mkroman has joined #ruby
bruno- has joined #ruby
Pierreb|home has joined #ruby
cdg has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
cdg has joined #ruby
ap4y has joined #ruby
cschneid_ has joined #ruby
cdg has quit [Read error: Connection reset by peer]
Pierreb has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
biberu has joined #ruby
InfinityFye has joined #ruby
guardianxx has quit [Remote host closed the connection]
guardianxx has joined #ruby
cschneid_ has joined #ruby
impermanence has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
impermanence has quit [Client Quit]
cschneid_ has quit [Ping timeout: 255 seconds]
bw__ has quit [Ping timeout: 260 seconds]
ams__ has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Read error: No route to host]
ur5us_ has joined #ruby
konos5 has joined #ruby
konos5 has quit [Client Quit]
cschneid_ has quit [Ping timeout: 258 seconds]
konos5 has joined #ruby
<Bish>
dminuoso: we will see wen i learned some of that shit (regarding fpure programming)
alfiemax has joined #ruby
<konos5>
Hi, I'am wondering how is it possible that methods defined inside Kernel module as available as Object class methods.
<dminuoso>
konos5: Note that this diagram only considers real honest classes, modules are injected in between - so Kernel appears between Object and BasicObject.
<dminuoso>
Bish: By carefully picking functions and relying on a support library like Ramda.
<dminuoso>
konos5: As you can see the super of Module is Object.
<konos5>
omg, self-referencial logic
<konos5>
I think matthewd's comment helped clean the air
<konos5>
Object, at any given time seems to have a dual role; instance of Class (which inherits from Object) and simple Object just including Kernel
<dminuoso>
konos5: If you think about it makes sense. Anything is an object, a class too.
<dminuoso>
konos5: Or my way of phrasing: Anything you can call a method on, is an object.
bvcosta has joined #ruby
<dminuoso>
And if its an object, it implies its class must have Object in its ancestory.
<konos5>
Thanks for all the help! Cheers!
<matthewd>
I should note I skipped Module in there -- Class inherits Module inherits Object
uZiel has quit [Ping timeout: 248 seconds]
<matthewd>
Singleton classes and module-inclusions start to get deeper, but you can form a pretty coherent mental model with just that loop
<dminuoso>
matthewd: I often tell people that modules are just classes (in disguise). :)
jameser has joined #ruby
<dminuoso>
But that requires understanding that include/prepend is just inserting that RClass into the super chain at certain points.
<matthewd>
s/that/a new/
cdg has quit [Remote host closed the connection]
<matthewd>
Oops, that replaces the wrong 'that'.. but you know what I meant :P
<Bish>
dminuoso: a language should have those features natively or not at all imo
<dminuoso>
Actually I'm still playing manual sed :D
lxsameer has quit [Quit: WeeChat 1.7]
cschneid_ has joined #ruby
<Bish>
if thousands Ramda or Rs "decorate" the code it will make it worse. if u ask me
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
matcouto has joined #ruby
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
mim1k_ has quit [Read error: Connection reset by peer]
paranoicsan has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Remote host closed the connection]
bvcosta has quit [Remote host closed the connection]
kapil___ has joined #ruby
bvcosta has joined #ruby
n13z has left #ruby [#ruby]
ur5us_ has quit [Ping timeout: 260 seconds]
stan_ has quit [Ping timeout: 246 seconds]
guardianxx has quit [Read error: Connection reset by peer]
guardianxx has joined #ruby
alnewkirk has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
bvcosta_ has joined #ruby
bvcosta has quit [Read error: Connection reset by peer]
uZiel has joined #ruby
Burgestrand has quit [Quit: Closing time!]
badrsahla has quit [Ping timeout: 255 seconds]
jinie has quit [Ping timeout: 258 seconds]
jinie has joined #ruby
alnewkirk has quit [Ping timeout: 258 seconds]
guardianxx has quit [Ping timeout: 248 seconds]
marr has joined #ruby
dasher00 has joined #ruby
cschneid_ has joined #ruby
mostlybadfly has joined #ruby
drcode has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
n13z has joined #ruby
alfiemax has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
CrazyEddy has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
tvw has quit [Remote host closed the connection]
anisha has quit [Read error: Connection reset by peer]
<dminuoso>
Bish: The `R` itself is a small issue honestly.
<dminuoso>
Bish: What is sometimes annoying is the lack of concise operators. For example R.compose(foo, bar, quux) is ugly compared to say foo * bar * quux in Ruby, or foo . bar . quux in Haskell.
GodFather has joined #ruby
<dminuoso>
But the R you get used to pretty quickly.
cdg has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
fmcgeough has joined #ruby
rgr has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 252 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
anisha_ has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
d^sh has joined #ruby
stamina has joined #ruby
anisha_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
rgr has joined #ruby
kahra has joined #ruby
jxv has quit [Quit: Connection closed for inactivity]
kahra has quit [Client Quit]
fmcgeough has quit [Quit: fmcgeough]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
tastytf has quit [Read error: Connection reset by peer]
tastytf has joined #ruby
badrsahla has joined #ruby
dasher00 has quit [Ping timeout: 255 seconds]
dasher00 has joined #ruby
chmurifree has joined #ruby
leah2 has quit [Ping timeout: 255 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
charliesome_ has joined #ruby
a--- has joined #ruby
cschneid_ has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
a--- has quit [Client Quit]
a--- has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
a--- has quit [Client Quit]
tmm88 has joined #ruby
tmm88 has quit [Changing host]
tmm88 has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
nofxx has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
leah2 has joined #ruby
drbrain has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
charliesome has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
charliesome_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
anisha_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
tmm88 has quit [Quit: leaving]
tmm88 has joined #ruby
tmm88 has quit [Client Quit]
tmm88 has joined #ruby
Dimik has quit [Remote host closed the connection]
alfiemax has joined #ruby
anisha_ has joined #ruby
synthroid has joined #ruby
synthroid has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
sleetdrop has joined #ruby
stilbruch has quit [Quit: WeeChat 1.9.1]
anisha_ has quit [Quit: This computer has gone to sleep]
shinnya has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
badrsahla has quit [Ping timeout: 255 seconds]
apparition has joined #ruby
Quentinius has joined #ruby
ShalokShalom_ has joined #ruby
paranoicsan has joined #ruby
ShalokShalom has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jaruga has quit [Quit: jaruga]
cschneid_ has quit [Ping timeout: 252 seconds]
hgost has left #ruby [#ruby]
Quentinius has quit [Ping timeout: 258 seconds]
uneeb has joined #ruby
ShekharReddy has joined #ruby
vidj has joined #ruby
<vidj>
I'm familiar with programming, but I'm clueless when it comes to ruby. I need a good resource to learn ruby from (and build on it with rails), with as less possible pages of what's a variable and similar stuff :D
tmm88 has quit [Quit: leaving]
tmm88 has joined #ruby
tmm88 has quit [Changing host]
tmm88 has joined #ruby
<TheBrayn>
I think I used ruby koans when I first learned the language
<TheBrayn>
not sure which
matcouto has quit [Remote host closed the connection]
ResidentBiscuit has quit [Ping timeout: 264 seconds]
badrsahla has joined #ruby
badrsahla has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
raynold has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
down has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
down_ has joined #ruby
eckhardt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
AndBobsYourUncle has joined #ruby
djbkd has joined #ruby
Pixi_ has quit [Quit: Pixi_]
Xiti has joined #ruby
ta has joined #ruby
alveric1 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
sundhell_away has joined #ruby
ta has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
John__ has quit [Read error: Connection reset by peer]
simmaniac has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
phoo1234567 has joined #ruby
streblo has joined #ruby
govg has quit [Ping timeout: 248 seconds]
MyMind has joined #ruby
claudiuinberlin has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
<streblo>
i have a file glob that recursively includes all files, like this: "Project/**/*". how would i change this glob if i wanted to recursively include all files, except for one directory at the top level, e.g. Project/DontIncludeMe/
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sembei has quit [Ping timeout: 240 seconds]
govg has joined #ruby
badrsahla has joined #ruby
selim_ has joined #ruby
<jeffreylevesque_>
apparently Dir[ File.join(dir, '**', '*') ].find_all { |p| File.file? p }, seems identical to Dir[ File.join(dir, '**', '*') ].find_all { |p| File.file? p }
selim has quit [Ping timeout: 240 seconds]
krasnus has joined #ruby
<jeffreylevesque_>
i mean the above is identical to `Dir[ File.join(dir, '**', '*') ].reject { |p| File.directory? p }`
uZiel has quit [Ping timeout: 248 seconds]
<jeffreylevesque_>
i want to recursively list only directories under dir/
elsevero has joined #ruby
<jeffreylevesque_>
then recursively list only files (not subdirectories) under dir/
paranoicsan has quit [Quit: paranoicsan]
<jeffreylevesque_>
maybe `.find_all` is not restrictive enough
badrsahla has quit [Ping timeout: 255 seconds]
down_ has quit [Remote host closed the connection]
down has joined #ruby
<streblo>
jeffreylevesque_ that gives me a starting point, thanks
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
down has quit [Remote host closed the connection]
<jeffreylevesque_>
ha, it seems we're working on similar things
<jeffreylevesque_>
i didn't even notice
down has joined #ruby
matcouto has quit [Ping timeout: 248 seconds]
ShalokShalom_ has quit [Ping timeout: 248 seconds]
ShalokShalom has joined #ruby
PaulCapestany has quit [Quit: .]
govg has quit [Ping timeout: 255 seconds]
<basket>
streblo: Maybe something like Dir['Project/*'].grep_v('DontIncludeMe').flat_map {|f| Dir[File.join(f, '**', '*')].concat([f])}
badrsahla has joined #ruby
<basket>
There might be a better way but that should work I think
govg has joined #ruby
kies has joined #ruby
jgt has joined #ruby
down_ has joined #ruby
<basket>
er, grep_v('Project/DontIncludeMe')
ShalokShalom has quit [Remote host closed the connection]
badrsahla has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
bvcosta has quit []
down has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
simmaniac is now known as sysvalve
jamesaxl has joined #ruby
govg has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 260 seconds]
phoo1234567 has quit [Quit: Gotta go]
govg has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
badrsahla has joined #ruby
jrafanie has joined #ruby
uZiel has joined #ruby
dviola has joined #ruby
InfinityFye has quit [Quit: Leaving]
ramfjord has joined #ruby
alfiemax has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
matcouto has joined #ruby
jamesaxl has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
<patrick99e99>
so, when an integer variable is passed into a function, is it copied? I was a little confused by this behavior: x=0; foo(x); def foo(num); num |= 256; end ... x will still eq 0, where I would expect it to be 256....
<patrick99e99>
oh nvermind.. i see |= is reassignment..
dasher00 has joined #ruby
<patrick99e99>
forgive me for the dumb question
John__ has joined #ruby
Guest66309 is now known as baweaver
orbyt_ has joined #ruby
guacamole has joined #ruby
baweaver is now known as Guest40909
matcouto has quit [Ping timeout: 248 seconds]
Cohedrin_ has joined #ruby
dc3 has joined #ruby
<elomatreb>
And even so, integers are never copied (You can't dupe an Integer)
n13z has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
Guest40909 is now known as baweaver_2
<elomatreb>
And finally, x in your example is a local variable, the outer x and the inner x are different local variables, reassigning in the function won't change the value of the outer one
jamesaxl has quit [Read error: Connection reset by peer]
n13z has joined #ruby
jamesaxl has joined #ruby
badrsahla has joined #ruby
anisha_ has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
mjuszczak has joined #ruby
streblo has left #ruby [#ruby]
ur5us has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Quit: Connection closed for inactivity]
cdg has quit [Ping timeout: 252 seconds]
vee__ has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 240 seconds]
dasher00 has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
cdg has joined #ruby
goyox86 has quit [Quit: goyox86]
jgt has quit [Quit: WeeChat 1.4]
down_ has quit [Remote host closed the connection]
badrsahla has joined #ruby
down has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
matcouto has joined #ruby
ta has joined #ruby
mtkd has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
mark_66 has quit [Remote host closed the connection]
down has quit [Ping timeout: 255 seconds]
matcouto has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 248 seconds]
down has joined #ruby
gheegh has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
swirlsMD has joined #ruby
Bock has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
badrsahla has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
xuanrui has joined #ruby
Technodrome has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
FooMunki has joined #ruby
chouhoulis has joined #ruby
mostlybadfly has joined #ruby
gusrub has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
gusrub has joined #ruby
badrsahla has joined #ruby
nopolitica has quit [Quit: WeeChat 1.9]
ta has joined #ruby
jidar has joined #ruby
<swirlsMD>
haylon: You can try: File.readlines('foo').each do |line|
mjuszcza_ has joined #ruby
rabajaj has quit [Quit: Leaving]
<haylon>
swirlsMD: #readlines automatically makes it an array, or would I have to split on the ','
mjuszczak has quit [Ping timeout: 252 seconds]
goyox86 has joined #ruby
ta has quit [Ping timeout: 248 seconds]
badrsahla has quit [Ping timeout: 240 seconds]
irated has quit [Ping timeout: 240 seconds]
<swirlsMD>
haylon: It will be a array, each item in the array is the read line.
megamos has quit [Ping timeout: 240 seconds]
<haylon>
Got ya, could monkey patch it so that the CSV.foreach would do the index too I guess
seth_ has joined #ruby
gusrub has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
<swirlsMD>
haylon: Yar, you could do a for each, with a split, and if position is consistent, call the position in the array
SeepingN has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszcza_ has quit []
badrsahla has joined #ruby
<swirlsMD>
[5] pry(main)> File.readlines('test_file.txt').each do |line|
<swirlsMD>
[5] pry(main)* l = line.split(',')
<swirlsMD>
[5] pry(main)* p l[0]
<swirlsMD>
[5] pry(main)* p l[1]
<swirlsMD>
[5] pry(main)* end
<swirlsMD>
smth like that
<haylon>
schwing. I'll give it a whirl.
<swirlsMD>
:thumbsup
mjuszczak has joined #ruby
simmaniac has joined #ruby
jidar has quit [Quit: WeeChat 1.9.1]
gusrub has quit [Remote host closed the connection]
jidar has joined #ruby
gusrub has joined #ruby
mjuszczak has quit [Client Quit]
seth_ has quit [Quit: Leaving]
badrsahla has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
sysvalve has quit [Ping timeout: 255 seconds]
matcouto has joined #ruby
mjuszczak has joined #ruby
irated has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
ta has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
matcouto has quit [Ping timeout: 255 seconds]
goyox86 has quit [Quit: goyox86]
troys is now known as troys_
gusrub has quit [Remote host closed the connection]
ta has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
bmurt has joined #ruby
chouhoulis has quit [Remote host closed the connection]
John__ has quit [Ping timeout: 248 seconds]
fmcgeough has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
mjuszcza_ has joined #ruby
swirlsMD has quit [Ping timeout: 248 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
ta has joined #ruby
mjuszczak has quit [Ping timeout: 255 seconds]
elsevero has quit [Quit: elsevero]
fmcgeough has joined #ruby
goyox86_ has joined #ruby
ta has quit [Remote host closed the connection]
synthroi_ has quit []
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
workmad3 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
John__ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ta has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
down has quit [Remote host closed the connection]
swirlsMD has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
badrsahla has joined #ruby
down_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
truenito has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 248 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
govg has joined #ruby
matcouto has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
down has joined #ruby
bmurt has joined #ruby
matcouto has quit [Ping timeout: 252 seconds]
down_ has quit [Ping timeout: 255 seconds]
mjuszcza_ has quit []
badrsahla has joined #ruby
mjuszczak has joined #ruby
truenito has joined #ruby
knight33 has joined #ruby
simmaniac has quit [Quit: Leaving]
badrsahla has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
down has quit [Ping timeout: 255 seconds]
down has joined #ruby
leah2 has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
truenito has quit [Ping timeout: 260 seconds]
eugenmayer has joined #ruby
down has quit [Remote host closed the connection]
<eugenmayer>
is there any way to define the arguments in thor so they are listed when the command executed without those? instead of " was called with no arguments"
down has joined #ruby
xuanrui has joined #ruby
mjuszczak has quit [Ping timeout: 252 seconds]
goyox86_ has quit [Quit: goyox86_]
duckpupp1 has joined #ruby
ur5us has joined #ruby
badrsahla has joined #ruby
down has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
down has joined #ruby
mjuszczak has joined #ruby
goyox86_ has quit [Client Quit]
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
cdg has joined #ruby
bmurt has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
swirlsMD has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
bmurt has quit [Client Quit]
gusrub has joined #ruby
chouhoulis has quit [Remote host closed the connection]
matcouto has joined #ruby
<matthewd>
haylon: CSV.foreach(...).with_index do |row, idx|
cdg_ has joined #ruby
leah2 has joined #ruby
eckhardt has quit [Ping timeout: 260 seconds]
rhyselsmore has joined #ruby
badrsahla has joined #ruby
gusrub has quit [Ping timeout: 260 seconds]
matcouto has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
bmurt has joined #ruby
eckhardt has joined #ruby
Asher has joined #ruby
badrsahla has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
badrsahla has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
cleankicks11 has joined #ruby
down has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
down has joined #ruby
<cleankicks11>
Hey, im trying to setup a ruby database in heroku and can't connect with mysql or pg
enterprisey has quit [Read error: Connection reset by peer]
montyboy has quit [Ping timeout: 252 seconds]
mjuszcza_ has joined #ruby
down has joined #ruby
noodle has quit [Quit: /quit]
<haylon>
matthewd: Thank you! That's ane ven better idea.
truenito has joined #ruby
mjuszcza_ has quit [Client Quit]
lagweezle has quit [Ping timeout: 260 seconds]
Flonk has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
mjuszczak has joined #ruby
gusrub has joined #ruby
tmm88 has quit [Quit: Lost terminal]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
truenito has quit [Ping timeout: 260 seconds]
<haylon>
that's an even better...
<ivanskie>
does 'return' end the flow of a function?
<ivanskie>
can i use it like: "return "Site: No match found" unless locFromIP(params[:ip])" in the beginning of a function.
<ivanskie>
or is 'try' better
noodle has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
<ivanskie>
nevermind try isn't even a thing in ruby
<ivanskie>
i guess catch
Flonk has joined #ruby
marxarelli is now known as marxarelli|afk
uZiel has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver_2 is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
goyox86 has quit [Quit: goyox86]
marxarelli|afk is now known as marxarelli
tvw has joined #ruby
<cleankicks11>
having a problem with my database.yml file any help?
Flonk has quit [Ping timeout: 255 seconds]
<havenwood>
ivanskie: yes, you can just `return` early from a method
<havenwood>
cleankicks11: what's the problem?
matcouto has joined #ruby
<ivanskie>
ah thank you. i just started writing begin/rescue block lol
dionysus69 has quit [Ping timeout: 255 seconds]
<cleankicks11>
havenwood: I can't connect to mysql, sqllite or pg. I have atempted to put in my password and I get an error active_record/connection_adapters/mysql_adapter
<havenwood>
?rails cleankicks11
<ruby[bot]>
cleankicks11: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood>
cleankicks11: What is the full error?
<cleankicks11>
havenwood: im a complete newb should I put the error log in pastebin?
<havenwood>
cleankicks11: yeah, a gist that has two files, one for your database.yml and one for the full error would be ideal
<havenwood>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<cleankicks11>
havenwood: not sure how to access gist
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
thomasv314 has joined #ruby
mjuszczak has joined #ruby
<guacamole>
hmmm
<guacamole>
do you still have the mysql gem in your gemfile cleankicks11 ?
<cleankicks11>
I haven't changed it since I uploaded the gist
<guacamole>
your gist doesn't show your whole gemfile
<guacamole>
i see where you've added the 'pg' gem but do you still have the mysql one in there?
<cleankicks11>
ok it doesn't, your right. I have pg on the gemfile
<guacamole>
pg only? my concern is that its assuming you want to use mysql because you have that in your gemfile, thats what i'm getting from your error trace
<guacamole>
its looking for mysql adapter, if you comment out the mysql gem and bundle it might stop looking for it and look for pg instead
badrsahla has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
AustinMatherne has quit [Quit: leaving]
voiceftp has joined #ruby
mim1k has joined #ruby
sepp2k has quit [Quit: Leaving.]
varymr has joined #ruby
eugenmayer has quit [Quit: Leaving.]
mim1k has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
tcopeland has quit [Quit: tcopeland]
Azure has joined #ruby
chouhoulis has joined #ruby
badrsahla has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
John__ has quit [Ping timeout: 248 seconds]
jeffreylevesque has joined #ruby
enterprisey has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
gusrub has quit [Remote host closed the connection]
Freshnuts has joined #ruby
<latemus>
is there a method to convert array values into hash values, ideally by specifying another array of strings as the corresponding hash keys?
<al2o3-cr>
latemus: example?
enterprisey has quit [Remote host closed the connection]
gusrub has joined #ruby
<al2o3-cr>
latemus: maybe zip & toH
<al2o3-cr>
*to_h
<latemus>
al2o3-cr: i want [2,'michael','student'] to become {'id' => 2, 'name' => 'michael', 'label' => 'student'}
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmcgeough has joined #ruby
<basket>
al2o3-cr: Given a fixed base b, f(x) = log_b(x), and g(x) = b ** x, then f(g(x)) = x, so I guess?
<al2o3-cr>
basket: is the natural logarithm inverse of exponentation?
<basket>
al2o3-cr: Why do you ask?
<al2o3-cr>
just graphin'
cagomez has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.9.1]
cagomez has joined #ruby
jphase has joined #ruby
imode has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
imode has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
thinkpad has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
tcopeland has joined #ruby
cagomez has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
imode has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
hahuang65 has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
troys is now known as troys_
troys_ is now known as troys
workmad3 has joined #ruby
impermanence has joined #ruby
<impermanence>
ne one have an exp with the aws ruby sdk?
<Radar>
?used impermanence
<ruby[bot]>
impermanence: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
Freshnuts has quit [Quit: Leaving]
code_zombie has quit [Quit: Leaving]
weaksauce has quit [Read error: Connection reset by peer]
<Radar>
You have to make a request to get the keys from IAM first, which you'd use the client for.;
cagomez has quit [Remote host closed the connection]
<impermanence>
Radar: That makes sense. What I was trying to do was take an accesskey on my box and throw it into some call and then call status against it...as a check before I make a call...
cagomez has joined #ruby
<Radar>
I think my code might be from version 2 (2.10.30) of the SDK. It might be different in v3.
<impermanence>
seems like that to me bc that's what i'm using
<impermanence>
here's what I was thinking
<impermanence>
I'm just messing around, basically, but here's what I was thinking
<impermanence>
Right now I have my creds stored in this yaml file. And then they get loaded into some SDK data structure...I can't remember which one, doesn't matter. then...
Technodrome has joined #ruby
cleankicks11 has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
<impermanence>
I wanted to make a call against the accesskey in that data structure and basically run a #status against it and say, "hey. if this passes...continue...else don't"
nofxx has joined #ruby
<impermanence>
I guess I have misunderstood the point of #status
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<impermanence>
yeah, I messed up on how #status is used...cuz it doesn't even take any parameters so my approach was not the greatest
bruno- has quit [Ping timeout: 248 seconds]
alveric2 has joined #ruby
cdg has joined #ruby
alex`` has quit [Ping timeout: 252 seconds]
alveric1 has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
chouhoulis has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
fnord_ has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
nymous has joined #ruby
<nymous>
hey folks
<nymous>
anyone alive? :)
brent__ has joined #ruby
<basket>
Hi nymous
<nymous>
again and again, i have a question about ruby concurrency