<zenspider>
Asher: why is that an asshole comment?
<postmodern>
what's the best way to take a String read from IO, and evaluate it for #{}s
hangingclowns has quit [#ruby-lang]
<postmodern>
eval("%{" + readline + "}") ?
<zenspider>
now that's a username...
<shevy>
ewwwwwww eval
<zenspider>
%{ ?
<postmodern>
zenspider, what I'm trying to do is read in shell commands, but process #{} in them
tommyvyo has joined #ruby-lang
<zenspider>
I'd prolly use gsub w/ a block
<postmodern>
zenspider, ah good idea
<zenspider>
depends on the possibly complexity of the contents of #{}
<zenspider>
since you'd have to factor in nested {} just in case
<Asher>
zenspider - b/c it tells nothing about why it is empty or where to find initialize… granted i figured out a few minutes later i should be looking in ext but commenting that nothing is there doesn't help me figure that out
gregf has joined #ruby-lang
<Asher>
perhaps i overstated it
<Asher>
but it is annoying
<Asher>
i mean at least tenderlove's code is nice and easy to read
<zenspider>
I dunno the context... but sometimes you do that simplely to have something that prevents the superclass' init from running
Kero has joined #ruby-lang
burns180_ has joined #ruby-lang
<Asher>
it appears in this case it's just a placeholder to define ruby-side init for a mostly-C-implemented class
musha68k has joined #ruby-lang
brushbox has joined #ruby-lang
Skif_home has joined #ruby-lang
jacktrick has joined #ruby-lang
cschneid has joined #ruby-lang
musl has joined #ruby-lang
tomzx has joined #ruby-lang
burns180_ has joined #ruby-lang
thone_ has joined #ruby-lang
<jaimef>
is there a way to reference a Rakefile from rake(1) from a different directory tree?
<zenspider>
is it possible to delete an issue on github entirely? I'm getting fed up with abusive whiny bitches
gregf has joined #ruby-lang
<zenspider>
Boohbah: why make it shorter?
<slyphon>
dominikh: hey, 'tmux-ruby' still lives?
<dominikh>
slyphon: It's still on my todo list
<slyphon>
hah
<Boohbah>
zenspider: for fun
<dominikh>
slyphon: but it will need some adjustments for the new tmux versions and right now I don't have time for that
<slyphon>
dominikh: have you considered gemming it?
<slyphon>
ahh
<cout>
zenspider: want me to take care of it? I can troll them. :)
<dominikh>
slyphon: yeah, when I finally get a version done that has all the important features
<zenspider>
cout: noooot exactly what I was looking for :P
<slyphon>
what needs work?
<slyphon>
i was gonna putz around with it to try and figure out how to make tmux do stuff
<zenspider>
Boohbah: I find writing crystal clear code more fun
<dominikh>
slyphon: no idea. has been months since I last looked at it. as I said, the last version it works with reliably is tmux 1.4. 1.5 and 1.6 might've changed some output so I have to update the parser
<slyphon>
zenspider: i was gonna try and make a mean joke from that, but out of respect i didn't
<slyphon>
zenspider: also, i'm too tired where it might have come out wrong
<slyphon>
zenspider: anyway, "hi!"
<dominikh>
slyphon: but maybe it works for what you want to do, dunno.
heppy_ has joined #ruby-lang
<slyphon>
dominikh: hah, ok
<slyphon>
i'll putz around
<zenspider>
heh
<slyphon>
zenspider: something like "Oh, since when?"
<slyphon>
but, no reason for that
Faris has joined #ruby-lang
slimfit has joined #ruby-lang
* jaimef
looks for a printing the output in a non-buffered fashion of a shell out. puts %x{ tail -f blah } seems to buffer severely
<slyphon>
$stdout.sync = true
<slyphon>
or $stdout.flush
<zenspider>
don't try to control buffering... let the system win
<dominikh>
that doesn't work too well when printing progress bars :P
<cout>
jaimef: yeah, tail does that :(
<slyphon>
ehhhhhh
<cout>
jaimef: you can use the pty library to trick it into thinking it's writing to a terminal
<slyphon>
there are cases where it's important to flush
* slyphon
can't believe he just said that with a straight face
<dominikh>
slyphon: you mean the ugly attr_reader + undef + def dance?
<slyphon>
yeah
<slyphon>
i've never seen that
<dominikh>
slyphon: that's so that YARD documents it as an attribute getter even though it's a method. (and yes, in this particular case I could've used a plain alias_method on :name instead). Nowadays you don't need that anymore, but I have yet to update it
<dominikh>
it has no practical meaning to Ruby
<dominikh>
(you can see the same on l. 114-115 + l. 128, where it makes more sense. but still, old way of doing it)
<slyphon>
i don't think your documentation system is supposed to influence you that way
<dominikh>
well, it's not anymore.
<slyphon>
hah
<slyphon>
that's one case where i'd be like, "Y'know what, fuck it"
<dominikh>
according to github, that file is 2 years old :)
<slyphon>
hah
<slyphon>
dominikh: would you still care about supporting 1.8.7?
<dominikh>
slyphon: I actively refuse changes that would make it 1.8.7-compatible
<dominikh>
that goes for all my projects
<dominikh>
1.8 has to die.
<slyphon>
so 1.9.2 or death
konr` has joined #ruby-lang
<slyphon>
ok
<dominikh>
well, 1.9.1 usually works, too ;)
<slyphon>
hahaha
<dominikh>
actually I have yet to read the .2 and .3 changelogs and see if I use any specific features of those
rippa has joined #ruby-lang
looopy has joined #ruby-lang
s0ber has joined #ruby-lang
heppy has joined #ruby-lang
ericmuyser has joined #ruby-lang
ScottNYC has joined #ruby-lang
<slyphon>
dominikh: i have to admit, i giggle when i do Tmux::Server.new.sessions.name = 'blah' and it changes the title bar of iterm2's window
<erikh>
sorry just woke up about 20 minutes ago, long week to boot
<Asher>
embedded APIs i mean like cocoa/cocoa-touch API or even an API to embed stuff in another website (but without running code on the site where it's embedded)
x0F_ has joined #ruby-lang
<Asher>
and no worries :)
<erikh>
this cascading configuration is interesting
aza_kibo_ has joined #ruby-lang
<erikh>
so, part of what I have to do for this service manager is let you configure services somehow
kitallis has joined #ruby-lang
<erikh>
i came up with something like this (which is largely working at this point)
<Asher>
i just realized that cascading-configuration-array-[unique, sorted, sorted-unique] aren't listed there yet
<matled>
I'd like to define some helper methods that are available in all classes in the module. how would I do this? it seems module A; def helper; end; class B; include A; end; end works, is this the way to go?
DMKE has joined #ruby-lang
judofyr has joined #ruby-lang
<judofyr>
RUBY RUBY RUBY RUBY
rue has joined #ruby-lang
<erikh>
fry fry fry fry
rue_XIV has joined #ruby-lang
<judofyr>
LUNCH!
<judofyr>
brb
fayimora has joined #ruby-lang
inTuxicated has quit ["Konversation terminated!"]
canton7 has joined #ruby-lang
<kalleth>
judofyr: 'aaaaaaa aaaaAAaaaAAaaaa'
<kalleth>
right?
Fullmoon has joined #ruby-lang
rolfb has joined #ruby-lang
Slackwise has joined #ruby-lang
m3nd3s has joined #ruby-lang
tomzx has joined #ruby-lang
<judofyr>
kalleth: ye
<heftig>
matled: i'd segregate them into a helper module
<heftig>
then you can call Helper.foo from the classes
sat has joined #ruby-lang
<heftig>
or alternatively, module Helper; module_function; def foo; :foo; end; def bar; :bar; end; end
<heftig>
then you can either include Helper and call "foo", or call "Helper.foo"
Jake232 has joined #ruby-lang
<Gray>
Guys, help me please, i can't solve this task:
<Gray>
Let's write a program which asks us to type in as many words as we want (one word per line, continuing until we just press Enter on an empty line), and which then repeats the words back to us in alphabetical order. OK?
<Gray>
<shevy>
and how far have you got
<shevy>
have you got to fetch user input already
<Gray>
I can not write a sorting algorithm. i'am moron? :\
<shevy>
well it just says to not use .sort
<Gray>
shevy: thats means that i need write sort by myself?
<Gray>
so, as i understand we can compare strings using <, =, >,
<shevy>
the <=> should be in module Enumerable
<shevy>
but if you are not allowed to use any sort* method at all, I wonder a bit how you can tap into that
<matled>
heftig: there is no way to define something within a module and have it available in all classes defined under the module?
<judofyr>
matled: no
<shevy>
oh
<shevy>
not Enumerable I guess
<heftig>
matled: of course
<heftig>
just do "def self.foo" under module A
<shevy>
not sure where <=> is
<heftig>
ah, wait, nevermind
<judofyr>
shevy: <=> is defined in the specific classes.
<heftig>
i'm being stupid
<judofyr>
shevy: just like #each
<matled>
heftig: ok, but then it's A.foo
<heftig>
matled: right
<Gray>
shevy: as i understand andrew < zack #=> true
<matled>
I think I'll use the Helper module. thanks
<Gray>
shevy: as i understand: "andrew" < "zack" #=> true
<shevy>
well
<judofyr>
Gray: here's one silly algorithm: smallest = first element; loop through the array, if current < smallest then smallest = current. then push smallest to a new array, delete it from the first and repeat
<shevy>
what would you have expected
burns180_ has joined #ruby-lang
<shevy>
you were never comparing the length in the above code I suppose
<judofyr>
erikh: Comparable implements <, >, >=, <= using <=>
<judofyr>
erikh: just like Enumerable implements #detect using #each
<erikh>
The Comparable mixin is used by classes whose objects may be ordered. The
<erikh>
class must define the <=> operator
<erikh>
correct
michael_mp has joined #ruby-lang
<erikh>
sorry if I spoke incorrectly, but that's what I meant
<judofyr>
ah
<judofyr>
:)
<shevy>
oh yeah that was its name... Comparable. Somehow Enumerable is easier to remember
kain has joined #ruby-lang
<judofyr>
I think it's because we've learned that "Enumrable is awesome" from the the beginning
<matled>
if I have a hash, call #to_a I get an array of arrays with two elements. how can I convert it back to a hash? Hash[*foo.flatten(1)] is quite strange to read imho
<judofyr>
Comparable just sits there
<judofyr>
matled: Hash[foo] should work in 1.8.7 and 1.9
<judofyr>
Hash[{1 => 2}.to_a] # => {1 => 2}
<matled>
judofyr: nice, somehow I missed that. thanks
<matled>
even though some method to be called on the array would be nice for #map, #select, ... chains
<apeiros_>
matled: like, to_hash?
<apeiros_>
class Array; def to_hash; Hash[self]; end; end
<erikh>
dirty monkeypatcher
<matled>
apeiros_: exactly :)
<apeiros_>
erikh: I feel no shame :-p
<erikh>
ha
xjonc has joined #ruby-lang
<verto>
erikh: lol
<verto>
apeiros_: :D
<apeiros_>
it's fascinating how implementing a blog allegedly takes 15 minutes in rails, yet I'm already in hour 3 of implementing a (very basic, mind you) addressbook…
malev has joined #ruby-lang
malev has joined #ruby-lang
adambeynon has joined #ruby-lang
<shevy>
apeiros_ :D
<shevy>
you are just damn slow ;)
<apeiros_>
I guess so…
<judofyr>
apieros: why are you implementing an address book?
<apeiros_>
maybe the blog was just scaffolding `rails generate scaffold BlogEntry title:text text:text` and that was it…
<apeiros_>
judofyr: I'm making a little presentation + workshop in our local rails community
<judofyr>
ah
<apeiros_>
about the swiss zip code system and using a directory service + other algorithms to have clean data
<judofyr>
cool
<apeiros_>
you wouldn't believe how important that is. my company wastes tens of thousands of dollars per year for data cleanup…
<judofyr>
woah
<apeiros_>
and I'm pretty sure that could be cut by a good 90% by using proper mechanisms during data input
<Gray>
this is mean that i'm blunt ? or this normal for beginner?
<judofyr>
Gray: nah, sorting algorithms aren't that easy
<judofyr>
Gray: but what are you not understanding?
<judofyr>
Gray: actually
<Gray>
i understand... but it takes about hour. And i feel bad because i can't create it by myself
<judofyr>
I realize that it can be made much simpler
<apeiros_>
Gray: getting a feeling for algorithms takes a while
<Gray>
okay, thanks. guys.
<apeiros_>
Gray: some people are more talented, others less, but at first exposure, I think it's pretty normal to not immediately grasp all aspects.
<shevy>
yeah
<apeiros_>
also, even for more experienced programmers, it's normal to start out with what we call "the naive approach/algorithm"
<shevy>
Gray it is better to understand in tiny steps and not try to understand everything in one day
<Gray>
apeiros_: my teacher in school says... that i will _never_ be programmer
<apeiros_>
which is mostly just do "how would I do it if I'd do it manually?" and then convert that into a recipe, which in turn can be translated into code.
<shevy>
Gray it is just a matter of practice
<apeiros_>
Gray: sounds like an enabling teacher, eh? :D
<jaisoares>
Hi everyone, could anyone please shed some light upon this issue? I posted a question on stackoverflow.com but still got no answer. http://stackoverflow.com/q/9628606/839270
<judofyr>
Gray: hm… but then you delete the first word, regardless of where the smallest word is?
<judofyr>
jaisoares: @name isn't "derived" from the object. it's a separate object that the person manages.
<Gray>
judofyr: hmm... :( sorry. I need find way to get index min in typed
<judofyr>
Gray: see Array#index :)
<jaisoares>
judofyr: so I do have to implement the to_s method the way I posted if I want that functionality, right?
<judofyr>
jaisoares: or override Person#taint
<judofyr>
to also taint @name
burns180 has joined #ruby-lang
burns180 has joined #ruby-lang
<judofyr>
jaisoares: I've rarely used #taint so I'm not sure what the best practices are…
<jaisoares>
judofyr: thanks judofyr that really sound like a more proper solution
<jaisoares>
judofyr: do you mind answering in stackoverflow what you said here so others with the same issue can profit from it, I'll accept your answer...
<judofyr>
matled: you're not supposed to read it twice :)
<matled>
judofyr: says who? :)
<judofyr>
matled: but yeah, I'd DATA.seek(0)
<matled>
judofyr: then I'll start with #!/usr/bin/env ruby :)
<Gray>
i remember :) and i just want finish that version :) without using min and sort
<matled>
it's actually a file handle to __FILE__ seeked to the correct position
<Gray>
methods
<judofyr>
Gray: ah :)
<Gray>
thanks :)
<judofyr>
gret
<judofyr>
great*
Joeysomo_ has joined #ruby-lang
<judofyr>
Gray: if you need some feedback and #ruby-lang is lazy, you could always try judofyr@gmail.com. I usually respond pretty quickly :)
* apeiros_
notes that down
<Gray>
judofyr: thank you very much!
<judofyr>
apieros: you're welcome too :)
<judofyr>
Gray: although, I must warn that sometimes it just gets stuck in my inbox forever :/
<Gray>
judofyr: anti-spam filters? or if questions stupid? :)
<apeiros_>
isn't that the same?
* apeiros_
has a stupid questions spam filter…
<judofyr>
Gray: it's not about if the question is stupid or hard. I just sometimes feel like don't asking them right away, and before I know it I've forgotten it completely
<judofyr>
and then I kinda say to myself "well, it's been so long, it doesn't matter anymore"
<apeiros_>
it matches against "has anyone ever", and "it doesn't work", and "can somebody"
* injekt
infiltrates past apeiros' filters with 'DIS DONT WORK PLS FIX'
<apeiros_>
injekt: it's an advanced AI that recognizes your silly trick!!!
<injekt>
:(
<apeiros_>
wait, actually it's an NI, not an AI
<judofyr>
apieros: what's up with the underscore btw?
<shevy>
it means "apieros with style"
<apeiros_>
it's there to confuse you, judofry
<apeiros_>
also I think it makes my nick even more intimidating!
<Tasser>
I'm sure the _ part of apeiros_ is because he's leaking
<shevy>
andrewvos, yeah I dont get math like that
adambeynon has joined #ruby-lang
io_syl has joined #ruby-lang
<Gray>
judofyr: as you know i read this book. And finish exercise at chapter 7. But if not community i can't solve this task in (long-version). Should i go to next chapter or you can give me more exercies to training?
<judofyr>
Gray: hm… kinda busy now, but you should be fine doing the next chapter
tekin has joined #ruby-lang
Sailias has joined #ruby-lang
<shevy>
sinatra lesson 2!
sandbags has joined #ruby-lang
<judofyr>
Gray: it's more important to understand the big picture than to focus solely on arrays. maybe the array exercises becomes easier when you've learnt more too :)
<shevy>
Gray go to next chapter if you understood the rest of that chapter
<shevy>
I never worked through the examples myself
<shevy>
when you write your own things, you'll get plenty of exercise anyway
burns180 has joined #ruby-lang
krz has joined #ruby-lang
malev_ has joined #ruby-lang
leonL has joined #ruby-lang
jaisoares has joined #ruby-lang
mistym has joined #ruby-lang
znz_v has joined #ruby-lang
dv310p3r has joined #ruby-lang
wmoxam has joined #ruby-lang
Gray has joined #ruby-lang
<Gray>
judofyr: i was disconnected, could you repet your last message
<seydar>
that's what i did last semester. lot of fun. it ultimately couldn't replace bash due to a few problems, but i forced it as my main shell for a long time
burns180 has joined #ruby-lang
<seydar>
god, that was fun
<seydar>
i learned so much doing it the first time and i learned a shittonne doing it a second time
<Gray>
so, my eglish is very bad... i don't should write "guys" yes?)
<seydar>
if i could just get * and ~ expansions and a proper sandbox that remembers variables, i'd be using chitin full time
<seydar>
Gray: haha, yes. "guys" is correct
<seydar>
I HAVE DECIDED I SHALL USE SEQUEL!
<Mon_Ouie>
Gray: However, it's "shouldn't", not "don't should" ;)
<seydar>
Phrogz: redirecting STDERR to a logger is a hack. so is it really much worse if you do a hack in your hack?
<Phrogz>
Perhaps not. Why do you consider it a 'hack' to want to output errors and warnings from daemons in a place that may be later reviewed?
<seydar>
don't let anyone know i said this, but i'm fine with what you wrote. also i can't really think of a better answer as it's specific to each logging app
<Phrogz>
:)
<seydar>
Phrogz: because it's mass redirection
fayimora_ has joined #ruby-lang
<seydar>
it's clunky and a very sweeping gesture. not very controlled
<seydar>
those are just my thoughts on it. but hey, it simple quick and painless
jasonw22 has joined #ruby-lang
slimfit has joined #ruby-lang
<shevy>
argh
<shevy>
I cant report issues at bitbucket?
m3nd3s has joined #ruby-lang
<shevy>
cant those guys learn from github? :(
<darix>
shevy: then they couldnt sell you jira anymore ;p
<shevy>
maaaaaan
fayimora_ has joined #ruby-lang
<shevy>
I often think "github isn't that great", but compared to other things, it is
<Phrogz>
Nice; that's mostly all I use Pry for anyhow, as much as I want to love the crazy object/method scoping and cd and showing source and modifying source.
<Phrogz>
Wow, that's tight tiny code, too.
<shevy>
well
<shevy>
eventually I am going to switch to pry one day
<shevy>
but until then let's see how much irb still gives out
<shevy>
hehe
<Phrogz>
Wonder why he has require 'yaml' in there.
<Phrogz>
Or 'pp' for that matter. Smells like maybe he just wants those always available for himself during debugging.
robbrit has quit [#ruby-lang]
burns180_ has joined #ruby-lang
<shevy>
hehe
imperator has joined #ruby-lang
<imperator>
greetings programs
m3nd3s has joined #ruby-lang
publicvoid has joined #ruby-lang
fayimora has joined #ruby-lang
fayimora has joined #ruby-lang
lchi has joined #ruby-lang
yorickpeterse has joined #ruby-lang
fayimora has joined #ruby-lang
slimfit has joined #ruby-lang
<shevy>
hi master breather!
* shevy
pictures imperator as a mixture of HAL, Darth Vader and the evil computer in Tron ...
Zolrath has joined #ruby-lang
rippa has joined #ruby-lang
<shevy>
though it is always kinda funny that mankind can explore space with thousand of spacecrafts, build a deathstart, yet be entirely unable to cure biological damage in the future
<shevy>
*deathstar
ascarter has joined #ruby-lang
<imperator>
in star trek: the next generation, curing cancer is no problemo, but baldness? pfft, sorry
achiu has joined #ruby-lang
justinxreese has joined #ruby-lang
<shevy>
lol
seydar has joined #ruby-lang
<seydar>
anyone familiar with authentication with sinatra?
Luxx_ has joined #ruby-lang
<seydar>
should i be using sinatra-authentication?
slimfit has joined #ruby-lang
Heimidal has joined #ruby-lang
<imperator>
seydar, i'm not; you might have better luck in #sinatra
<seydar>
i had to do the registered bit which seems like a hack
<seydar>
i want everyone to flock back to the command line
<seydar>
the web will be the death of us all
<shevy>
:)
<shevy>
I see the web makes you happy
m3nd3s has joined #ruby-lang
<shevy>
how do they say about XML ... if XML is not making you happy, you were not using it enough
Heimidal has joined #ruby-lang
<seydar>
i really like ruby and the web though. the web is certainly an interesting platform to work with, and ruby makes it fun
<lianj>
yea, telnet games are so much safer
Tearan has joined #ruby-lang
<seydar>
SO MUCH effort has been poured into making web programming comfortable
<seydar>
and you can tell
<seydar>
it's so evident in ruby
<seydar>
if ncurses apps were that way...
<lianj>
rails/rack you mean
<seydar>
lianj: yeah, you're right. that's where the effort's been
<seydar>
i can understand why it would be bad to skew our efforts towards rails
<seydar>
but towards rack? is that a bad thing?
<seydar>
are there alternatives to rack?
<shevy>
ncurses is so painful
<seydar>
i know, right?
<seydar>
i dunno how wm does it with sup
rdeshpande has joined #ruby-lang
dejongge has joined #ruby-lang
l0st1 has joined #ruby-lang
<seydar>
i found this one project that had a beautiful ncurses abstraction over it
<seydar>
and ithought i bookmarked it
<seydar>
but evidently not
gianlucadv has joined #ruby-lang
wallerdev has joined #ruby-lang
heppy has joined #ruby-lang
amerine has joined #ruby-lang
ericmuyser has joined #ruby-lang
malev_ has joined #ruby-lang
burns180 has joined #ruby-lang
apeiros_ has joined #ruby-lang
butchanton has joined #ruby-lang
H2H has joined #ruby-lang
amerine has joined #ruby-lang
SuperTaz_work has joined #ruby-lang
chimkan has joined #ruby-lang
ericmuyser has joined #ruby-lang
beiter has joined #ruby-lang
<seydar>
so who's using sequel?
* apeiros_
does
<seydar>
sinatra-authentication uses User.set (where User < Sequel::Model) as a create method
<seydar>
which is nominally strange since that's not what the name says
<seydar>
and User.set also doesn't do that. it doesn't really seem to do much
<seydar>
apeiros_: how do i fix this?
<apeiros_>
no idea
<seydar>
you done authentication with sinatra before?
<apeiros_>
no
darkf has joined #ruby-lang
<seydar>
fuck it, this thing really wants datamapper
<seydar>
but you know what?
<seydar>
NOT GONNA HAPPEN
<seydar>
time to fuck shit up
<seydar>
and modify some code
<seydar>
but first, lunch
achiu1 has joined #ruby-lang
mrsolo has joined #ruby-lang
Avanine has joined #ruby-lang
burns180_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
fayimora has joined #ruby-lang
Heimidal has joined #ruby-lang
benanne has joined #ruby-lang
manojhans has joined #ruby-lang
spleeze has joined #ruby-lang
robbyoconnor has joined #ruby-lang
dreinull has joined #ruby-lang
Spooner has joined #ruby-lang
srbaker has joined #ruby-lang
Giddeon has joined #ruby-lang
gianlucadv has joined #ruby-lang
amerine has joined #ruby-lang
DMKE has joined #ruby-lang
brownies has joined #ruby-lang
burns180 has joined #ruby-lang
indstry has joined #ruby-lang
gjaldon has joined #ruby-lang
yorickpeterse has joined #ruby-lang
kyrylo has joined #ruby-lang
<crankharder>
trying to write a module that hooks into ActiveSupport::TestCase's #setup method. alias chain method isn't cooperating. what am i doing wrong here? https://gist.github.com/2007990
<crankharder>
trying to get my setup method to run before AS::TC's setup method
justinxreese has joined #ruby-lang
<crankharder>
also, the test isnt' broken
lsegal has joined #ruby-lang
manojhans has joined #ruby-lang
MDmalLION has joined #ruby-lang
PigDude has quit [#ruby-lang]
<MDmalLION>
what do I type to list all the methods in a class>
<shevy>
.methods
<shevy>
bar = Bar.new; bar.methods
MDmalLION has joined #ruby-lang
twittard has joined #ruby-lang
MDmalLION has joined #ruby-lang
robbyoconnor has joined #ruby-lang
ankurgel has joined #ruby-lang
ankurgel has joined #ruby-lang
indstry has joined #ruby-lang
A124 has joined #ruby-lang
MDmalLION has joined #ruby-lang
ankurgel has quit [#ruby-lang]
manoj has joined #ruby-lang
burns180_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
achiu has joined #ruby-lang
ilyam has joined #ruby-lang
manojhans has joined #ruby-lang
MDmalLION has joined #ruby-lang
postmodern has joined #ruby-lang
MDmalLION has joined #ruby-lang
Sailias_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
srbaker has joined #ruby-lang
tla_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
wmoxam has joined #ruby-lang
MDmalLION has joined #ruby-lang
<imperator>
Bar.instance_methods
<imperator>
or Bar.instance_methods(false) if you don't want to show inherited methods
Keva161 has joined #ruby-lang
MDmalLION has joined #ruby-lang
zmack has joined #ruby-lang
lateau_ has joined #ruby-lang
qpingu has joined #ruby-lang
frem has joined #ruby-lang
MDmalLION has joined #ruby-lang
mssola has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
Sailias_ has joined #ruby-lang
zmack has joined #ruby-lang
bubbadean has joined #ruby-lang
hashbangchris has joined #ruby-lang
malev_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
tommyvyo has joined #ruby-lang
burns180 has joined #ruby-lang
lateau_ has quit [#ruby-lang]
gix has joined #ruby-lang
r3trofitted has joined #ruby-lang
MDmalLION has joined #ruby-lang
malev_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
perryh has joined #ruby-lang
malev_ has joined #ruby-lang
Skif has joined #ruby-lang
MDmalLION has joined #ruby-lang
MDmalLION has joined #ruby-lang
tomzx has joined #ruby-lang
febeling has joined #ruby-lang
MDmalLION has joined #ruby-lang
dreinull has joined #ruby-lang
hagebake has joined #ruby-lang
hagebake has joined #ruby-lang
MDmalLION has joined #ruby-lang
MDmalLION has joined #ruby-lang
Stalkr_ has joined #ruby-lang
moemen has joined #ruby-lang
Heimidal_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
malev_ has joined #ruby-lang
malev_ has joined #ruby-lang
burns180_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
<shevy>
that's much nicer
chimkan has joined #ruby-lang
chimkan_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
MDmalLION has joined #ruby-lang
Natch| has joined #ruby-lang
rdavila has joined #ruby-lang
MDmalLION has joined #ruby-lang
verto has joined #ruby-lang
MDmalLION has joined #ruby-lang
Indian has joined #ruby-lang
MDmalLION has joined #ruby-lang
MDmalLION has joined #ruby-lang
burns180 has joined #ruby-lang
achiu has joined #ruby-lang
woollyams has joined #ruby-lang
slimfit has joined #ruby-lang
rue has joined #ruby-lang
MDmalLION has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
burns180_ has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
zmack has joined #ruby-lang
MDmalLION has joined #ruby-lang
MDmalLION has joined #ruby-lang
MDmalLION has joined #ruby-lang
y3llow has joined #ruby-lang
s0ber has joined #ruby-lang
pbjorklund has joined #ruby-lang
zmack has joined #ruby-lang
Heimidal has joined #ruby-lang
y3llow has joined #ruby-lang
MDmalLION has joined #ruby-lang
davidw has joined #ruby-lang
y3llow has joined #ruby-lang
workmad3_ has joined #ruby-lang
y3llow has joined #ruby-lang
malev__ has joined #ruby-lang
Phrogz has joined #ruby-lang
<Phrogz>
apeiros_: Why require 'pp' and require 'yaml' in irb_drop?
* Phrogz
just rolls his own Sinatra authentication.
MDmalLION has joined #ruby-lang
<apeiros_>
Phrogz: i have that in it? funny… I have that in irbrc anyway
<drbrain>
power failure ☹
<apeiros_>
Phrogz: I really have no idea why that is in… must be some relict. It shouldn't be in there.
yeltzooo has joined #ruby-lang
burns180 has joined #ruby-lang
<Phrogz>
apeiros_: Cool. :)
kain has joined #ruby-lang
<Phrogz>
Who was asking about Sinatra auth earlier, before my IRC went down?
<apeiros_>
I think he went off
MDmalLION has joined #ruby-lang
curtism has joined #ruby-lang
curtism has joined #ruby-lang
<Phrogz>
hokay
MDmalLION has joined #ruby-lang
freedrull has joined #ruby-lang
MDmalLION has joined #ruby-lang
phlipper has joined #ruby-lang
MDmalLION has joined #ruby-lang
wyhaines has joined #ruby-lang
MDmalLION has joined #ruby-lang
lifestream has joined #ruby-lang
burns180_ has joined #ruby-lang
MDmalLION has joined #ruby-lang
outoftime has joined #ruby-lang
virunga has joined #ruby-lang
BHensley has joined #ruby-lang
MDmalLION has joined #ruby-lang
ryanf has joined #ruby-lang
Heimidal has joined #ruby-lang
brianpWins has joined #ruby-lang
<owen1>
can someone send a link to the recent github slideshow about documentation (mainly tomdoc)?
MDmalLION has joined #ruby-lang
dv310p3r has joined #ruby-lang
talkingrain has joined #ruby-lang
MDmalLION has joined #ruby-lang
<talkingrain>
hi
<talkingrain>
i want to extract information from Config::CONFIG or RbConfig::CONFIG
<talkingrain>
whats the best way to do that in a 1.8 / 1.9 agnostic (or gnostic) way?
<talkingrain>
ie... if 1.8 use the former, if 1.9 use the latter
<cout>
I always use RbConfig
<talkingrain>
cout: is that available on 1.8?
MDmalLION has joined #ruby-lang
jaisoares has quit [#ruby-lang]
<cout>
e.g. RbConfig = Config if not defined?(RbConfig)