apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
pr0ton has joined #ruby-lang
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
pr0ton has quit [Client Quit]
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
kgrz has joined #ruby-lang
iliketurtles has joined #ruby-lang
stamina has joined #ruby-lang
pr0ton has joined #ruby-lang
GaelanAintAround is now known as Gaelan
Gaelan is now known as GaelanAintAround
tylersmith has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 265 seconds]
stamina has quit [Ping timeout: 264 seconds]
GaelanAintAround is now known as Gaelan
mannyt has joined #ruby-lang
saarinen has quit [Quit: saarinen]
a1ph4g33k has quit [Quit: Leaving]
mistym has quit [Quit: Leaving]
micalexander has quit [Remote host closed the connection]
Coincidental has quit [Remote host closed the connection]
Asher2 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
Coincidental has joined #ruby-lang
bastilian has joined #ruby-lang
GeissT has joined #ruby-lang
Johz has quit [Quit: Leaving]
Coincidental has quit [Ping timeout: 248 seconds]
jejacks0n has joined #ruby-lang
benlovell has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
havenwood has joined #ruby-lang
Kabaka has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
EvolutionXJ has joined #ruby-lang
mark06 has joined #ruby-lang
tkuchiki has joined #ruby-lang
<jejacks0n>
Hi.
Kabaka has joined #ruby-lang
<jejacks0n>
I've faced this issue before, and I don't need code or anything, but I wanted to see if there were any novel approaches to the problem. I'm considering writing a gem that uses ActiveModel::Serializers to collect those serializers into JSON, which can then be used to help document an api resources, or to generate client friendly representations of your resources -- eg. backbone/spine models.
havenwood has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
<jejacks0n>
I know I can use #descendants, but the serializers are autoloaded.
<jejacks0n>
so, do I require every file in a given path, or is there a nicer way to accomplish this?
Nortmobile has joined #ruby-lang
<jejacks0n>
think annotate_models or something similar, but for serializers (since that what a client would care about).
shinnya has quit [Ping timeout: 264 seconds]
EvolutionXJ has quit [Quit: Leaving]
<jejacks0n>
is this maybe not ruby-lang enough for here?
<mark06>
why there are two channels, #ruby and #ruby-lang?
<mark06>
I don't remember why I'm using Ruby 1.8, any particular reason for not upgrading to 1.9? I found out e.g. 1.23.round(2) does not work in 1.8
kgrz has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
knu has quit [Ping timeout: 248 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
jonathanmarvens has quit [Remote host closed the connection]
fosky has joined #ruby-lang
fosky has quit [Client Quit]
tylersmith has joined #ruby-lang
bungoman has joined #ruby-lang
nathanstitt has joined #ruby-lang
tylersmith has quit [Ping timeout: 240 seconds]
jejacks0n has quit [Quit: jejacks0n]
lfox has quit []
tylersmith has joined #ruby-lang
eoinkelly_ has joined #ruby-lang
eoinkelly_ has left #ruby-lang [#ruby-lang]
ldnunes has quit [Quit: Leaving]
iliketurtles has joined #ruby-lang
cored has joined #ruby-lang
Gaelan is now known as GaelanAintAround
mark06 has left #ruby-lang [#ruby-lang]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
pr0ton has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
Coincidental has quit [Ping timeout: 240 seconds]
deception has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
cored has quit [Ping timeout: 240 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
mannyt has quit [Ping timeout: 245 seconds]
micalexander has joined #ruby-lang
mannyt has joined #ruby-lang
charliesome has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
GaelanAintAround is now known as Gaelan
kurko_ has joined #ruby-lang
fijimunkii has quit [Ping timeout: 252 seconds]
Gaelan is now known as GaelanAintAround
nvg has quit [Quit: ircII EPIC5-1.1.2 -- Are we there yet?]
pkrnj has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
kenta_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
kenta_ has joined #ruby-lang
kenta_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
JohnBat26 has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
bf4 has quit [Ping timeout: 248 seconds]
arBmind has quit [Quit: Leaving.]
kenta_ has joined #ruby-lang
benlovell has joined #ruby-lang
mistym has quit [Remote host closed the connection]
stamina has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rolfb has joined #ruby-lang
h_kon has joined #ruby-lang
nettsundere has joined #ruby-lang
ingof has joined #ruby-lang
ingof has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
alexju_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sr78ger has joined #ruby-lang
alexju has quit [Ping timeout: 245 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
dagobah has joined #ruby-lang
Nortmobile has quit [Read error: Connection reset by peer]
Nortmobile has joined #ruby-lang
ta has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
mdedetrich has joined #ruby-lang
ta has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Oak has joined #ruby-lang
banisterfiend has joined #ruby-lang
tylersmith has quit [Ping timeout: 248 seconds]
nettsundere has quit [Quit: nettsundere]
io_syl has quit []
iliketurtles has quit [Quit: zzzzz…..]
majjoha has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
<majjoha>
I've had some problems with my Ruby environment lately. When I try to install capybara-webkit, I receive a 'Failed to build gem native extension error' and I cannot really find out how to solve this error. I have pasted my terminal output here: https://gist.github.com/majjoha/5db5234e0d3765b18918 Can any of you give me a hint on what I am doing wrong?
nettsundere has joined #ruby-lang
schaerli has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Client Quit]
axsuul has joined #ruby-lang
caral has joined #ruby-lang
caral has left #ruby-lang [#ruby-lang]
Guest95586 has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
<maloik>
majjoha: I would probably start by looking at xcode command line tools, gcc and all that
<maloik>
don't know much about it but I get the feeling they're sometimes related
<maloik>
What do you run in terms of OS ? Already on Mavericks ?
<majjoha>
I recently updated them, so I think that might be why I've had these issues. Apparently, though, this error was caused by not having Qt installed.
mdedetrich has quit [Quit: Computer has gone to sleep.]
yorick-cowboy is now known as yorickpeterse
<micalexander>
im getting an `initialize': undefined method `[]' for nil:NilClass (NoMethodError), I am passing this class a variable and trying to set two instance variables with it. When I change the instance variables (inside the initialize method) to class methods, it seems to work fine. Any ideas?
kurko_ has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
kgrz has joined #ruby-lang
<ljarvis>
micalexander: some code would help
robbyoconnor has quit [Ping timeout: 264 seconds]
<micalexander>
ljarvis: ok one sec
adam__ has joined #ruby-lang
adam__ has quit [Remote host closed the connection]
fragamus has quit [Quit: Computer has gone to sleep.]
bean__ has joined #ruby-lang
nathanstitt has joined #ruby-lang
<micalexander>
ljarvis: ok I've seem to have simulate the issue here https://eval.in/53766
nettsundere has joined #ruby-lang
blackcoffee89 has joined #ruby-lang
blackcoffee89 has quit [Client Quit]
<micalexander>
ljarvis: ok I may have more to go on. I think the project path variable is nil
barttenbrinke has joined #ruby-lang
<ljarvis>
micalexander: @config_settings is not set
<ljarvis>
which means it's nil, and you're calling #[] on it
<micalexander>
obviously in the url I provided it was nil, however in my code I forgot to add that it is being set like this @config_settings = Configuration.settings, from a class called configuration
<ljarvis>
so you didn't add the part that's going wrong?
<ljarvis>
that's not incredibly helpful to me
<micalexander>
that part is added in my actual code
<ljarvis>
then that's the problem, it's returning nil
<micalexander>
I apologize, I did say I forgot to mention it
<ljarvis>
micalexander: can you provide full working reproduction of your problem?
<micalexander>
is it because I have it as an instance variable instead of a class variable
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
kenta_ has joined #ruby-lang
mhenrixon has quit [Quit: Computer has gone to sleep.]
<maloik>
I used $:.unshift twice, first on current dir via File.dirname(__FILE__) and then on File.dirname(__FILE__ + '/tasks') but apparently that wasnt enough
<ljarvis>
maloik: the .rb suffix doesn't matter, and the path is absolute
<ljarvis>
so the basename/extname stuff is superflous
<maloik>
you're talking about line 8 right ?
mmorga has quit [Read error: Connection reset by peer]
<ljarvis>
correct
<maloik>
k lets see
<ljarvis>
(you dont need to do any of the $:.unshift stuff either)
mmorga has joined #ruby-lang
enebo has joined #ruby-lang
<ljarvis>
but i dont see that in your code even though you mentioned it
havenwood has joined #ruby-lang
tylersmith has joined #ruby-lang
<maloik>
yea I'm in the process of debugging it
<maloik>
it's being a big PITA
<ljarvis>
:)
<ljarvis>
Dir globbing returns absolute paths, so in general you can just throw the files at require
tubbo has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
yalue has joined #ruby-lang
VTLob has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
<maloik>
no clue why im getting uninitialized constant on that task class
<ljarvis>
LocalDeploy?
micalexander has joined #ruby-lang
<maloik>
one similar to that yea
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
<maloik>
basically the one in the examples dir copied into tasks/
<ljarvis>
it's defined on JekyllCatcherTask not JekyllCatcher::Task
<maloik>
(the repo is a bit of a mess atm)
mistym has joined #ruby-lang
<maloik>
I know that one is wrong and shouldnt be in there
<ljarvis>
ah
<ljarvis>
heh
<maloik>
example one should be fine
<ljarvis>
it's being loaded correctly?
<maloik>
you mean through the require ?
<ljarvis>
yeah
<ljarvis>
like, can you access the constant directly?
nettsundere has quit [Quit: nettsundere]
MaddinXx_ has joined #ruby-lang
fragamus has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
<maloik>
puts defined?(JekyllCatcher).to_s seems to return 'constant' lol
Pupeno_ has quit [Ping timeout: 248 seconds]
<workmad3>
maloik: that's about right
<workmad3>
maloik: defined? will return nil if the arg isn't defined, otherwise it'll return a string of what it is :)
nettsundere has joined #ruby-lang
<maloik>
oh hold on
micalexander has quit [Ping timeout: 248 seconds]
<maloik>
booyah
<maloik>
the glob thing missed a /
fragamus has quit [Read error: Connection reset by peer]
<maloik>
it said tasks/*.rb instead of /tasks
<ljarvis>
:)
momomomomo has joined #ruby-lang
wallerdev has joined #ruby-lang
jondot has joined #ruby-lang
<maloik>
alright, next up, debugging my actual jekyll build script
mistym has quit [Remote host closed the connection]
GeissT has quit [Ping timeout: 248 seconds]
<maloik>
I wish I knew minitest properly, testdriving this thing would have been so much faster
<maloik>
and I cba to use rspec on such a little app
<workmad3>
maloik: minispec it?
nettsundere has quit [Quit: nettsundere]
<ljarvis>
minitest is simple
<ljarvis>
minitest/spec is nice if you're from rspec background
<maloik>
still, not used to it especially something like this so I'd be suuuuuuper slow
nettsundere has joined #ruby-lang
<ljarvis>
maloik: did you check marks talk at arrrrcamp?
<maloik>
parts of it
<maloik>
I think I saw about 25% of each talk
<yorickpeterse>
Given you're on instance level of a class, is there a way to call a class method without using something along the lines of `self.class`?
<ljarvis>
i guess you were super busy
<yorickpeterse>
and without class_eval
<maloik>
(both rooms as I was running around taking pics)
mmoore_ has joined #ruby-lang
<ljarvis>
yorickpeterse: no, use self.class
<yorickpeterse>
hm, guess I can hijack self.extended
<ljarvis>
bro
<yorickpeterse>
tl;dr: basically want instance variables on class level to be inherited
<workmad3>
yorickpeterse: do you mean 'inherited' or 'easily accessible to instances'?
mhenrixon has joined #ruby-lang
<ljarvis>
he wants "herp derp"
mbj has joined #ruby-lang
Pupeno_ has joined #ruby-lang
<yorickpeterse>
basically a class variable that isn't a class variable
<yorickpeterse>
here, sec
<yorickpeterse>
hm wait, context probably easier
<yorickpeterse>
tl;dr making some Sinatra-like option system, figured it would be neat to somehow inherit options
<yorickpeterse>
but I have a better solution for this one particular case where I'd need that
Pupeno has quit [Ping timeout: 264 seconds]
mmorga has quit [Remote host closed the connection]
Squarepy has quit [Ping timeout: 245 seconds]
Ahti333 has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
rippa has joined #ruby-lang
jithu_ has quit [Quit: Mother, did it need to be so high?]
jithu has joined #ruby-lang
charliesome has joined #ruby-lang
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
nettsundere has quit [Quit: nettsundere]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
kek has quit [Remote host closed the connection]
sevvie has joined #ruby-lang
apeiros has quit [Ping timeout: 252 seconds]
dwknoxy has joined #ruby-lang
jiuweigui has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
bf4 has joined #ruby-lang
mhenrixon has quit [Quit: Computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
iliketurtles has joined #ruby-lang
bf4 has joined #ruby-lang
tkuchiki has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
Tearan has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 248 seconds]
gix has joined #ruby-lang
ruby-lang has joined #ruby-lang
metus_violarium has joined #ruby-lang
ruby-lang has left #ruby-lang [#ruby-lang]
alexh1 has joined #ruby-lang
45PAAB1XT has quit [Ping timeout: 248 seconds]
Tearan has quit [Quit: Sleepy Badger....]
iliketurtles has quit [Quit: zzzzz…..]
kek has joined #ruby-lang
Tearan has joined #ruby-lang
workmad3_ has joined #ruby-lang
workmad3_ has quit [Client Quit]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
LanceHaig has joined #ruby-lang
apeiros has joined #ruby-lang
iliketurtles has joined #ruby-lang
alexju has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
io_syl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
workmad3 has quit [Quit: leaving]
workmad3 has joined #ruby-lang
heftig has joined #ruby-lang
kenta_ has quit [Remote host closed the connection]
kenta_ has joined #ruby-lang
elia has quit [Ping timeout: 248 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
kenta_ has quit [Ping timeout: 248 seconds]
ScaredWee has left #ruby-lang [#ruby-lang]
weems has joined #ruby-lang
linc01n has joined #ruby-lang
linc01n has quit [Client Quit]
linc01n has joined #ruby-lang
mmorga has joined #ruby-lang
panpainter has quit [Quit: panpainter]
hurrrtin has joined #ruby-lang
<hurrrtin>
Hi all! I have a question about classes and modules
<maloik>
shoot
<hurrrtin>
in file a.rb, I have class A; ... ; end. In file b.rb, I have module B; ...; end. How can I load file A into the B module, without specifically naming class A as class B::A in a.rb?
<charliesome>
hurrrtin: yah?
richardburton1 has quit [Quit: Leaving.]
<hurrrtin>
So that I can require a.rb outside of B's namespace
panpainter has joined #ruby-lang
<hurrrtin>
in another place..
<hurrrtin>
make sense?
mhenrixon has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<charliesome>
you could use: B.instance_eval(File.read("a.rb"), "a.rb")
<charliesome>
hurrrtin: but it's not the most elegant solution
Authenti1ator has joined #ruby-lang
Authenti1ator has quit [Client Quit]
<hurrrtin>
So, the contents of a.rb have to be eval'd? I thought load would do it, but it does not without the namespace
tbuehlmann has quit [Quit: Konversation terminated!]
hahuang65 has joined #ruby-lang
<charliesome>
hurrrtin: nah load/require eval everything in the global namespace
<charliesome>
you can get it to run files in a wrapper module
<charliesome>
but i think that wrapper module is just an anonymous module it creates
<hurrrtin>
could I require a.rb, and in module B, do 'A = ::A' ?
<hurrrtin>
or something along those lines?
banisterfiend has joined #ruby-lang
mmorga has quit [Read error: Connection reset by peer]
pellenation has quit [Quit: Leaving.]
mmorga has joined #ruby-lang
tubbo has quit [Ping timeout: 248 seconds]
<hurrrtin>
That actually works it looks like...
symm- has joined #ruby-lang
<hurrrtin>
I don't really get why, but it does lol
dhruvasagar has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby-lang
<hurrrtin>
One more question: Say file c.rb has a class C that has some instance methods. I would like to pull class C's methods into module B. So instead of having to call C.foo, I can call B.foo. Can that be done?
alexju has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
ruby-lang344 has quit [Quit: Page closed]
ruby-lang987 has joined #ruby-lang
prestoUZH has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
JoshuaPaling has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
<prestoUZH>
Hello?
<prestoUZH>
First time using an irc ;P
ldnunes has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<prestoUZH>
Can I ask here for help?
headius has quit [Quit: headius]
<prestoUZH>
Trying to print messages to the terminal using Curses, and though I've got somewhere the syntax is 30 years old (apparently) and really un ruby-like
pr0ton has joined #ruby-lang
<prestoUZH>
for instance, how can I change the color of the messages?
<prestoUZH>
the text
headius has joined #ruby-lang
<prestoUZH>
afk
Senjai has quit [Ping timeout: 248 seconds]
bastilian has joined #ruby-lang
Squarepy has quit [Remote host closed the connection]
elia has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
Squarepy has joined #ruby-lang
Squarepy has quit [Client Quit]
richardburton1 has quit [Quit: Leaving.]
<drbrain>
prestoUZH: with attron using a predefined style
io_syl has quit []
enebo has quit [Quit: enebo]
elia has joined #ruby-lang
bungoman_ has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
<drbrain>
prestoUZH: create a style with Curses.init_pair and Curses.color_pair
<drbrain>
and probably Curses.start_color
bungoman has quit [Ping timeout: 248 seconds]
richardburton has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
firstdayonthejob has quit [Client Quit]
bungoman_ has quit [Ping timeout: 264 seconds]
panpainter has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
<rickhull>
prestoUZH: welcome to IRC :) you are on a freenode server, dedicated to FOSS, and one particular etiquette point you should be aware of is, you never need to ask to ask. just ask
<rickhull>
other IRC servers may have different etiquette
<drbrain>
if I have to ask to ask, I generally don't want to be in that channel
<drbrain>
because that's just silly
* rickhull
nod
<rickhull>
another etiquette point to be aware of, don't paste multiple lines of code into the chat — use a paste site. this is covered in this channel's MOTD
<prestoUZH>
Is it be more ruby-esque in that case?
<drbrain>
prestoUZH: I think so
<prestoUZH>
Awesome. Look into that
<drbrain>
also, it uses noutrefresh to reduce window painting (a good curses technique)
<prestoUZH>
So Curses is very much up-to-date then
<drbrain>
the curses extension? yes
<drbrain>
it even has the scroll pad (Curses::Pad)
<prestoUZH>
What I mean is, there's barely any resources on Google so I was wondering if anyone actually uses it! :P
<prestoUZH>
clearly so
<drbrain>
there's no longer much demand for curses applications
<drbrain>
browsers have taken over
<prestoUZH>
True, but rails applications use the command line heavily
<drbrain>
while I haven't investigated fully, curses doesn't support some key combinations well
<drbrain>
at least, doesn't seem to
<prestoUZH>
Basically , right, I'm creating a custom rake task, I have it working perfectly with standard puts and gets methods, and just thought I could make it prettier, so that's why I'm looking into curses
<prestoUZH>
so I'm not doing anything crazy, just making input look nicer :)
<prestoUZH>
What are the 4 parameters when creating a new window?
symm- has joined #ruby-lang
<prestoUZH>
I assume one is height, and one is width?
snarfmason has joined #ruby-lang
<drbrain>
new instances of window, yes
<prestoUZH>
:)
<prestoUZH>
The first two parameters are height and width
<drbrain>
height, width, top, left
<prestoUZH>
ahhh
<drbrain>
ri Curses::Window.new
<drbrain>
(or check ruby-doc.org
nathanstitt has joined #ruby-lang
<prestoUZH>
Awesome
<prestoUZH>
getting somewhere now
<prestoUZH>
win.box(?|, ?-) creates a box around the window. Automatically gets the width and height and creates a box from characters...could you explain the (?|, ?-) ?
nisstyre has quit [Quit: Leaving]
<drbrain>
those are the border characters
<drbrain>
?| is the same as '|'
<prestoUZH>
I see. If you make a Window instance larger than the actual Command Prompt window, does the script abort with a 'already closed window' error?
<prestoUZH>
that's what I get
jiuweigui has quit [Quit: iQuit!]
asym is now known as yan_
yan_ has left #ruby-lang [#ruby-lang]
havenwood has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
<drbrain>
I don't know, I've never tried that
<prestoUZH>
hmm. okay. It's just if my window has a height greater than 64 it causes an 'already closed window' error?
<prestoUZH>
doesn't really matter, just wondering
VTLob has quit [Quit: VTLob]
<drbrain>
you can use Curses::Pad if you need to display an area larger than the window
<prestoUZH>
Awesome!! That was really giving me worries. For some idiotic reason Command Prompt on windows 7 doesn't go full screen. It has a set width and set height for some reason known only to Bill Gates -_- I was worried my beautiful ouput would get all mangled on windows
<prestoUZH>
unix systems don't so it of course
<prestoUZH>
*don't do it
jbsan has quit [Quit: JB.. OUT!]
jbsan has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 240 seconds]