<soLucien>
will ? convert something to a boolean ?
ekinmur has joined #ruby
<Zarthus>
yes and no, it's easier if you assume methods ending in ? will return a boolean
__void has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 265 seconds]
vimou has quit [Quit: vimou]
chouhoul_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
cyphase has joined #ruby
<al2o3-cr>
o/
roamingdog has joined #ruby
biberu has quit [Read error: Connection reset by peer]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
<al2o3-cr>
\o
rubie has quit [Remote host closed the connection]
LoneHermit has joined #ruby
LoneHermit has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
LoneHermit has joined #ruby
flashpoint9 has joined #ruby
rubie_ has joined #ruby
jenrzzz has joined #ruby
<al2o3-cr>
nobody can comprehend ruby until dominos
macsteps has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Quit: Exiting...]
Gasher has quit [Quit: Leaving]
Azure has joined #ruby
JesseH has joined #ruby
hwcomcn has joined #ruby
Mattx has joined #ruby
matcouto has joined #ruby
<Mattx>
How do I run jruby once it's installed through rvm if I don't want to make it the default ruby interpreter? I just want to execute a file every now and then
<Mattx>
I can do "rvm jruby" and then "ruby file.rb". but then I have to always run "rvm use ruby"
<Mattx>
and actually, I need to use both at the same time sometimes
giz|work has joined #ruby
SilverKey has joined #ruby
pawnbox has joined #ruby
flashpoint9 has joined #ruby
marr has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
Silthias has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
agent_white has quit [Quit: leaving]
roamingdog has quit []
xall has quit [Ping timeout: 276 seconds]
rubie_ has quit [Remote host closed the connection]
<aleskandro>
Hi all, i developed a recursive function def recursive_search(some_args, hash_arg)
hanmac has quit [Ping timeout: 250 seconds]
<aleskandro>
when I recall the recursive_search inside it and edit the hash_arg it comes edited also in the caller function, as if the hash_arg is passed by reference
<aleskandro>
hash_arg is a hash
tubuliferous has joined #ruby
<aleskandro>
how can I solve this?
SCHAAP137_ has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
ec0 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
Asher has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
Chair has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
aleskandro: Yes, you always pass a reference to objects in Ruby. You can Copy the hash before you pass it by calling #dup. You can also copy it inside the method right before you modify it (tj = start_tj.dup).
benlieb has joined #ruby
<Mon_Ouie>
ule: Hashes preserve insertion order, so you could rebuild the hash by iterating over correct_order and inserting key/value pairs into a new hash.
codeandcoffee_ has joined #ruby
<ule>
Mon_Ouie: that's what I'm doing here.. I'm almost finishing and then I'll paste the code here so you guys can give me some tips if it's possible to improve the code
Cork has quit [Quit: .]
rubie has quit [Remote host closed the connection]
araujo_ has quit [Quit: Leaving]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
MarkBilk has quit [Ping timeout: 250 seconds]
Cork has joined #ruby
flashpoint9 has joined #ruby
LoneHermit has joined #ruby
nankyokusei has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
<leitz>
Design question. The program loads Module M and makes an Object of Class O. Program then loads one of Modules 1, 2, or 3 to do stuff to Object. Modules 1, 2, and 3 have similar Methods but use different Module attributes internally.
<leitz>
Is there a better way to write 1, 2, and 3 than to duplicate method code manually?
jaguarmagenta has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
tk_ has joined #ruby
face has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
aupadhye has quit [Quit: Leaving]
nofxx has joined #ruby
GabeTomaz has joined #ruby
RegulationD has joined #ruby
<Papierkorb>
leitz: You mean a ruby Module, right?
g6egh8hjh has joined #ruby
hipertracker has joined #ruby
<toretore>
leitz: it's much easier to help if you can show some actual code
<leitz>
Papierkorb, sort of. Module M loads one of Module 1, 2, or 3. The main method, "run_career" is currently in 1, 2, and 3. It calls specific methods in those modules, but putting "run_career" in Module M seems to be very tight coupling.
<Papierkorb>
leitz: You can totally share code between models too by having another module with that code, and then include that other module in the 'interested' modules
<leitz>
the program Chargen.rb requires module CharacterTools.rb, which requires either Noble.rb, Citizen.rb, or Other.rb.
<Papierkorb>
Doesn't really look OOP-y
nanoz has quit [Quit: <3]
<leitz>
I'm using it to learn OOP-y stuff. Still learning. :)
g6egh8hjh has quit [Ping timeout: 240 seconds]
<Papierkorb>
leitz: Citizen looks like it could be a usual class
bmurt has joined #ruby
<Papierkorb>
leitz: Storing everything into an 'external' object, in this case even a Hash, for this is not needed. Are you coming from a imperative language?
dmmoody has joined #ruby
<leitz>
Papierkorb, I do mostly bash and have done some C. So yeah, my OOP-fu is weak.
<Papierkorb>
So yes, imperative. No problem.
<Papierkorb>
Huh, your README talks about it using Ruby 1.8 - Is this true?
<leitz>
I'm trying to keep things simple so I don't get too confused.
<leitz>
On Ruby 1.8, yes. I work on servers, and that's what they have.
<Papierkorb>
Oh my god, that's way beyond end of life
<Papierkorb>
Please don'T
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb>
Also on servers, you can easily install a recent ruby for a single user without any root permissions required
<leitz>
Can't add a newer Ruby, and that's why I minimize my code to use Built in classes and modules.
hahuang61 has quit [Ping timeout: 250 seconds]
<leitz>
Then whatever I write won't work on the other servers.
<Papierkorb>
leitz: You're making things for yourself much much harder. "Keeping it simple to not get confused" is the polar opposite
benlieb has quit [Quit: benlieb]
<Papierkorb>
What are those 'other servers'?
<leitz>
All Ruby 1.8.
jenrzzz has quit [Ping timeout: 244 seconds]
<Papierkorb>
Ruby 1.8 is not only ultra slow, but also has tons of known issues which are unpatched.
<Papierkorb>
It's like you're using Windows 98 for a new deployment
<leitz>
Understood, but not something i can change.
<leitz>
Rather, I'm willing to live with the old version instead of having to maintain a new version everywhere.
dmmoody has quit [Ping timeout: 260 seconds]
<Papierkorb>
You know bash, right? Script it.
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hammond has joined #ruby
<leitz>
And sit though days of coding to script and weeks of meetings to talk management into a new version of ruby just so I can have new featuers I'm not going to use?
<leitz>
Nyah.
<Papierkorb>
lel
<hammond>
in a case statement when I'm catching string commands with when how do I catch a string that's included in the general string
<Papierkorb>
> not going to use
<hammond>
like "This is a string" when "string"
<hammond>
or something
<Papierkorb>
hammond: use regexps: when /something/
<Papierkorb>
leitz: Also have a base-class for 'people'. if a noble is a citizen, make Noble inherit from Citizen. If not, have a base-class like `Person` and make classes inherit from that. In ruby, we use snake_case.rb file names, NotThis.rb
<hammond>
ok
<Papierkorb>
leitz: And "not going to use". Good one. I don't get it, why do people make it so much harder for them under the guise of 'making it easier'? Gems will want to use "that new stuff", people helping expect you use a recent ruby version which is not EOL'd.
<Papierkorb>
ruby-install isn't hard, perfectly scriptable (using bash, there are pre-made ansible plays for it, or with other provision tools)
<Papierkorb>
And if your app gets crashed or otherwise owned by an attacker through a known issue, what's going "management" think about you then?
johnmilton has quit [Ping timeout: 244 seconds]
<leitz>
Papierkorb, I understand that "real" Ruby programmers need and use the newer features and efficiencies. I'm trying to learn and show the local folks that Ruby is a viable alternative to Python or Perl. If we have to install new versions of Ruby outside of vendor provided code, and if we have to run regression tests because new gems break old code, Ruby loses a chance to be used.
<leitz>
I can use the Ruby on the system and do simple stuff.
<leitz>
I can play with Ruby at home and learn more so I can take it to work and do more stuff.
<hammond>
idk i think ruby is good for tech-savvy people. like coders.
<Papierkorb>
1) small char file name 2) If your method does not expect arguments, you can leave out the "()" completely 3) Please don't use String.new, simply do ""
<Papierkorb>
leitz:
hipertracker has quit [Quit: hipertracker]
bmurt has joined #ruby
<Papierkorb>
leitz: The ruby community has a somewhat common ground on what ruby code should look like. You don't have to follow everyone in the end, but for the start, it could be a good idea. You can use `rubocop` ($ gem install rubocop) as code linter. Your code editor may already come with rubocop integration. Rubocop would tell you the same I told you
<leitz>
hammond, I find Ruby fun to code in.
<hammond>
true. distributing ruby code to normal users seems hard. but probably possible.
<leitz>
Papierkorb, Papierkorb, rubocop only supports MRI 2+
<Papierkorb>
Which is reasonable.
<Papierkorb>
I'm not going to recommend using software which is EOL'd and has security issues.
thinkvantage has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Guest34914 has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
hipertracker has joined #ruby
minotep has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest34914 has joined #ruby
DoubleMalt has joined #ruby
agit0 has joined #ruby
giz|work has joined #ruby
<leitz>
Papieroorb, understood.
<leitz>
Sorry, didn't mean to misspell Papierkorb. Just got back from breakfast.
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti_>
/win 16
terens has quit []
ellistaa has joined #ruby
shinnya has joined #ruby
GabeTomaz has quit [Quit: WeeChat 1.4]
thinkvantage has quit [Quit: Konversation terminated!]
johnmilton has joined #ruby
pandaant has quit [Remote host closed the connection]
hahuang61 has joined #ruby
johnmilton has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hakunin has quit [Ping timeout: 264 seconds]
tubuliferous has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
hakunin has joined #ruby
minimalism has joined #ruby
Spami has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Devalo has quit [Remote host closed the connection]
qbantek has joined #ruby
jenrzzz has joined #ruby
Devalo has joined #ruby
qbantek has quit [Client Quit]
Devalo has quit [Ping timeout: 264 seconds]
johnmilton has joined #ruby
qbantek has joined #ruby
ElFerna has joined #ruby
l4v2 has joined #ruby
hakunin has quit [Ping timeout: 244 seconds]
minotep has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 264 seconds]
ruby[bot] has joined #ruby
hakunin has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Yacker has joined #ruby
ellistaa has quit [Ping timeout: 265 seconds]
ElFerna has quit [Read error: Connection reset by peer]
ellistaa has joined #ruby
nankyokusei has joined #ruby
kobain has joined #ruby
codeandcoffee_ has quit [Quit: Connection closed for inactivity]
tvw has joined #ruby
framling has joined #ruby
ellistaa has quit [Client Quit]
qbantek has quit []
ellistaa has joined #ruby
qbantek has joined #ruby
Rodya_ has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
qbantek has quit [Client Quit]
MarkBilk has joined #ruby
flashpoint9 has joined #ruby
RegulationD has joined #ruby
sdwrage has joined #ruby
Devalo has joined #ruby
sdwrage has quit [Client Quit]
flashpoint9 has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
jaguarmagenta has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
spudowiar has joined #ruby
st0mar has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
aryaching has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
<ellistaa>
functional programming is not by any means concurrent right? id have to write functional code that is also concurrent if i wanted both?
<ellistaa>
oops wrong channel
bmurt has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
hipertracker has quit [Quit: hipertracker]
hipertracker has joined #ruby
hipertracker has quit [Client Quit]
tvw has quit [Remote host closed the connection]
ahuman has quit [Ping timeout: 264 seconds]
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
ekinmur has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ahuman has joined #ruby
tk_ has quit [Quit: ばいばい]
craigp has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
dmmoody has joined #ruby
bmurt has joined #ruby
dmmoody has quit [Client Quit]
tubuliferous has joined #ruby
rubie has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
bmurt has quit [Ping timeout: 244 seconds]
Es0teric has joined #ruby
craigp has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
rubie has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
bmurt has joined #ruby
Devalo has joined #ruby
SilverKey has quit [Quit: Halted.]
sleepee has quit [Ping timeout: 244 seconds]
rubie has joined #ruby
craigp has quit [Read error: No route to host]
Devalo has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jud^ has joined #ruby
ellistaa has quit [Quit: ellistaa]
jud has quit [Ping timeout: 250 seconds]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
nischay1989 has joined #ruby
hakunin has joined #ruby
hakunin__ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
hakunin_ has quit [Ping timeout: 264 seconds]
seap has joined #ruby
marr has quit [Ping timeout: 244 seconds]
ellistaa has joined #ruby
sleepee has joined #ruby
Azure has quit [Ping timeout: 276 seconds]
agit0 has quit [Quit: zzzZZZ….]
ellistaa has quit [Client Quit]
ellistaa has joined #ruby
ellistaa has quit [Client Quit]
sleepee has quit [Ping timeout: 264 seconds]
nickjj_ has joined #ruby
jhack has joined #ruby
ellistaa has joined #ruby
joonty has joined #ruby
nettoweb has joined #ruby
rubie has quit [Remote host closed the connection]
rubie has joined #ruby
rubie has quit [Remote host closed the connection]
rubie has joined #ruby
joonty has quit [Client Quit]
nickjj_ has quit [Ping timeout: 258 seconds]
swills has quit [Quit: Leaving]
Es0teric has quit [Quit: Computer has gone to sleep.]
rubie_ has joined #ruby
rubie has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swills has joined #ruby
ecnalyr has joined #ruby
joonty has joined #ruby
ellistaa has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has quit [Client Quit]
chouhoulis has joined #ruby
ElFerna has joined #ruby
ecnalyr has quit [Ping timeout: 250 seconds]
ellistaa has joined #ruby
kavanagh has joined #ruby
killerkamel has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
pawnbox has quit [Remote host closed the connection]
joonty has joined #ruby
karapetyan has joined #ruby
hahuang61 has joined #ruby
joonty has quit [Client Quit]
ellistaa has quit [Quit: ellistaa]
AndyBotwin has joined #ruby
tubuliferous has joined #ruby
Devalo has joined #ruby
fmcgeough has joined #ruby
kavanagh has quit [Quit: That's all folks!]
hahuang61 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
krobzaur has joined #ruby
hakunin has joined #ruby
hakunin__ has quit [Read error: Connection reset by peer]
Hyuk has joined #ruby
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
kavanagh has joined #ruby
giz|work has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
dennisvennink has joined #ruby
rubie_ has quit [Remote host closed the connection]
<ule>
Papierkorb: how about extra? it should go the the end
<ule>
Papierkorb: OMG this is so coool
flashpoint9 has quit [Remote host closed the connection]
<Papierkorb>
However, if one size is not given, this will include stuff like `"M" => nil`. To remedy this, you append ...to_h.reject{|_, v| v.nil?}
<Papierkorb>
If you're working with Rails, or have ActiveSupport loaded, you can just use `compact` instead of the `reject`. It does the same
<rails>
what
<rails>
oh
flashpoint9 has joined #ruby
<ule>
Papierkorb: I'm writing down your tips here.. I'm gonna read the docs for each function to understand well
<rails>
i should go
rails has left #ruby ["I thought what I'd do was, I'd pretend I was one of those deaf-mutes."]
<Papierkorb>
ule: If you want to add 'EXTRA', just append it to the sorted array. Or any other position you want it to show up
<Papierkorb>
>> a = {"L"=>5, "M"=>10, "S"=>9, "EXTRA"=>88, "XL"=>1, "XS"=>4}; b = %w(XS S M L XL); b.each_with_object({}){|key, hsh| hsh[key] = a[key]}
<Papierkorb>
ule: Another solution above. Same `reject` stuff applies to this one.
yorickpeterse has quit [Quit: yorickpeterse]
<ule>
Papierkorb: thank you so much!!
ellistaa has joined #ruby
<ule>
Papierkorb: how long have you been working with ruby?
<Papierkorb>
ule: There is a third 1-line way I can think of right now using Enumerable#map. Try coming up with it yourself, if you're having trouble, ask here
<Papierkorb>
ule: A year or something?
<ule>
Papierkorb: really cool! thanks a lot!
hahuang61 has joined #ruby
evie_hammond has quit [Quit: WeeChat 1.5]
<ule>
in order to append I would need to execute some kind of diff
eljimbo has joined #ruby
<ule>
to extract examples like the EXTRA there..
giz|work has joined #ruby
<ule>
not sure if I can do .diff on hash or I'll need to convert it to array
<Papierkorb>
Append? Diff? Can't follow right now
<ule>
so.. after ordering like you did above, I would need to create a diff from the original hash and the final hash
<ule>
this will give the elements that is differing right.. something like a.diff(b)
<ule>
and then append it to the sorted hash
<ule>
lemme try here
hahuang61 has quit [Ping timeout: 250 seconds]
yorickpeterse has joined #ruby
hipertracker has joined #ruby
evie_hammond has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
<al2o3-cr>
anyone got any ideas on how to set STDIN.readline to non-blocking because i've tried everything
hipertracker has quit [Ping timeout: 244 seconds]
Ishido has joined #ruby
wpaulson has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
wpaulson has quit [Remote host closed the connection]
wpaulson has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
<adam12>
Basically, if @source_root is not nil, return it. If not, use the value from the Pathname call and then assign it to @source_root
<adam12>
(which then gets returned obviously)
<adam12>
It can also be referred to as memoization.
<soLucien>
ok cool
nettoweb has quit [Client Quit]
Alina-malina has quit [Ping timeout: 260 seconds]
<soLucien>
it's like the null coalescing operation in c#
<soLucien>
possiblyNullValue ?? valueIfNull
hahuang61 has joined #ruby
cdg has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
myndzi has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
<havenwood>
soLucien: possibly or possibly = value
<soLucien>
i see
<soLucien>
cool
RegulationD has joined #ruby
Alina-malina_ has quit [Changing host]
Alina-malina_ has joined #ruby
nankyokusei has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
seap has quit [Quit: WeeChat 1.5]
Dimik has joined #ruby
jenrzzz has joined #ruby
banisterfiend has joined #ruby
ruby-lang388 has joined #ruby
Cohedrin has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
ElFerna has quit [Read error: Connection reset by peer]
rubie has quit []
<ruby-lang388>
using elasticsearch module, I want to find out and create an array of all nodes that are masters. So that I can compare all nodes with this array later in my script and print something only if they are not masters.
<ruby-lang388>
can any one suggest how to be able to do this?
xxneolithicxx has quit [Quit: Leaving.]
chihhsin has quit [Ping timeout: 244 seconds]
<toretore>
what is "elasticsearch module"?
chihhsin has joined #ruby
<ruby-lang388>
first question in any of the IRCs ever. ( and I did read the link about how to ask question ). But if I miss some details. Sorry about that..
rubie has quit [Remote host closed the connection]
karapetyan has joined #ruby
kavanagh has joined #ruby
rubie has joined #ruby
nhhc has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
Synthead has quit [Ping timeout: 276 seconds]
<ytti_>
&win 12
flashpoint9 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
karapetyan has quit [Remote host closed the connection]
ecnalyr has joined #ruby
jetpack_joe has quit [Read error: Connection reset by peer]
QORRiE has joined #ruby
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
enilsen16 has joined #ruby
kavanagh has quit [Ping timeout: 244 seconds]
Synthead has joined #ruby
ecnalyr has quit [Ping timeout: 260 seconds]
agit0 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
gregf has joined #ruby
benlieb has joined #ruby
k3rn31 has joined #ruby
yqt has joined #ruby
l4v2 has quit [Quit: l4v2]
kobain has joined #ruby
joonty has joined #ruby
joonty has quit [Client Quit]
der-land1 has quit [Quit: WeeChat 1.5]
maarhart has joined #ruby
der-landgraf has joined #ruby
der-landgraf has quit [Changing host]
der-landgraf has joined #ruby
ec0 has joined #ruby
symm- has joined #ruby
rubie has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
rubie has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<soLucien>
why would one use the ! in the method_name! synthax?
maarhart has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
rails has joined #ruby
pawnbox has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 240 seconds]
agit0 has quit [Quit: zzzZZZ….]
Hobogrammer has joined #ruby
gabriel has joined #ruby
ta_ has joined #ruby
pawnbox has joined #ruby
nankyokusei has joined #ruby
<Papierkorb>
soLucien: As visual indicator that this method does something destructive, something maybe 'unexpected' or could also be used to identify a method with 'interesting' side effects
aeterne has joined #ruby
<Papierkorb>
soLucien: For example, String has gsub and gsub!. The first one returns the new, gsubbed string. The second one modifies the string itself (= it is destructive), which can lead to side-effects outside the callers domain if one is not careful.
<soLucien>
alright .. so ! is part of the function name
ta_ has quit [Remote host closed the connection]
<soLucien>
and it does not imply anything to the lnguage
nankyokusei has quit [Ping timeout: 258 seconds]
<soLucien>
just like ? is
<soLucien>
a visual indicator that the function returns boolean
allcentury has joined #ruby
kavanagh has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 260 seconds]
<Papierkorb>
yes
yardenbar has quit [Ping timeout: 240 seconds]
Evesy_ has joined #ruby
<Evesy_>
Hey there, I had a quick question re some erb syntax.. I've got the below in a template and I don't want it to include a newline (i.e. having -%>) if nothing is to be outputted, but if it is I do want the newline to exist:
Rodya_ has quit [Remote host closed the connection]
Madplatypus has joined #ruby
vuoto has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
d5sx43 has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 244 seconds]
d5sx43 has joined #ruby
ellistaa has joined #ruby
exchgr has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
minotep has quit [Ping timeout: 260 seconds]
kavanagh has quit [Ping timeout: 258 seconds]
kavanagh has joined #ruby
fmcgeough has joined #ruby
ellistaa has quit [Quit: ellistaa]
antgel has joined #ruby
nando293921 has joined #ruby
nando293921 has quit [Client Quit]
nando293921 has joined #ruby
Rodya_ has joined #ruby
rails has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
evilNirvana has joined #ruby
evilNirvana is now known as rails
rails has quit [Changing host]
rails has joined #ruby
Synthead has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
kavanagh has quit [Ping timeout: 276 seconds]
ellistaa has joined #ruby
kavanagh has joined #ruby
flashpoint9 has joined #ruby
enilsen16 has joined #ruby
xall has quit [Ping timeout: 244 seconds]
rubie has quit [Remote host closed the connection]
allcentury has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
Rodya_ has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
kavanagh has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
hipertracker has quit [Quit: hipertracker]
Synthead has joined #ruby
kirun has quit [Quit: Client exiting]
xall has joined #ruby
v0n has joined #ruby
kavanagh has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
giz|work has quit [Ping timeout: 258 seconds]
mloy_ has joined #ruby
Rodya_ has joined #ruby
mloy_ has quit [Client Quit]
zarubin has quit [Quit: leaving]
ledestin has joined #ruby
zarubin has joined #ruby
SilverKey has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
hipertracker has joined #ruby
ellistaa has quit [Quit: ellistaa]
hipertracker has quit [Client Quit]
kavanagh has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
hipertracker has joined #ruby
d5sx43 has quit []
nando293921 has joined #ruby
rubie has joined #ruby
last_staff has quit [Quit: last_staff]
nankyokusei has quit [Ping timeout: 276 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
Alina-malina_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ta_ has joined #ruby
yfeldblum has joined #ruby
kavanagh has joined #ruby
MarkBilk has quit [Ping timeout: 250 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ellistaa has joined #ruby
firstdayonthejob has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
Es0teric has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
hipertracker has quit [Quit: hipertracker]
hipertracker has joined #ruby
gabriel1 has quit [Quit: WeeChat 1.4]
macsteps has joined #ruby
kavanagh has quit [Ping timeout: 244 seconds]
rawillia has joined #ruby
toretore has quit [Ping timeout: 258 seconds]
kavanagh has joined #ruby
spider-mario has quit [Remote host closed the connection]
<rawillia>
I've a quick question regarding FactoryGirl: I'm attempting to use it with Cucumber for easy models, but I'm getting uninitialized constant when I try to call my model. http://pastebin.com/s1sRwBua
<ruby[bot]>
rawillia: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
flashpoint9 has joined #ruby
dpk_ has joined #ruby
l4v2 has joined #ruby
underplank has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
Synthead has quit [Ping timeout: 276 seconds]
kavanagh has quit [Remote host closed the connection]
kavanagh has joined #ruby
ellistaa has quit [Quit: ellistaa]
dpk_ has quit [Quit: Page closed]
dpkezio has joined #ruby
ecnalyr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Synthead has joined #ruby
hipertracker has quit [Quit: hipertracker]
dpkezio has quit [Client Quit]
kavanagh has quit [Ping timeout: 276 seconds]
ecnalyr has quit [Ping timeout: 244 seconds]
ellistaa has joined #ruby
gdonald has joined #ruby
abshake has joined #ruby
<abshake>
hello
<abshake>
anybody there?
LoneHerm_ has joined #ruby
<abshake>
heloooo
nischay1989 has quit [Remote host closed the connection]
<havenwood>
abshake: hi
ta_ has quit [Remote host closed the connection]
abshake has quit [Client Quit]
kavanagh has joined #ruby
kavanagh has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
ellistaa has quit [Quit: ellistaa]
hipertracker has joined #ruby
<zacts>
hi rubyists
<havenwood>
hi
macsteps has quit [Remote host closed the connection]
duncannz has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
QORRiE has quit [Quit: Leaving]
Spami has joined #ruby
l4v2 has quit [Quit: l4v2]
RegulationD has joined #ruby
xxneolithicxx has joined #ruby
Guest32874 has quit [Quit: Oh shit the geek died!]
gdonald is now known as gdonald_
Evan has joined #ruby
<AphelionZ>
might somebody be able to help me debug an issue im having with Sinatra and paperclip?
gdonald_ is now known as gdonald
Evan is now known as Guest14857
Jackneill_ has quit [Remote host closed the connection]
<AphelionZ>
I'm hosting with Heroku and I'm at a point now where the upload is silently failing with a 500 error and I'm not even sure how / where to debug
RegulationD has quit [Ping timeout: 252 seconds]
rubie has quit [Remote host closed the connection]
ellistaa has joined #ruby
spookyghost has joined #ruby
jenrzzz has joined #ruby
spookyghost has quit [Remote host closed the connection]
framling has joined #ruby
ellistaa has quit [Client Quit]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
jottr has joined #ruby
rubie has joined #ruby
l4v2 has joined #ruby
pawnbox has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 250 seconds]
nikitasius has joined #ruby
nikitasius has left #ruby ["WeeChat 1.0.1"]
T2ya has joined #ruby
Guest59843 has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
<Guest59843>
debating on if i should learn ruby like when will i use it