def is_pos_activation?
    if session[:pos_activation]
      block_given? ? yield : true
...

Ruby better way?

by RoadHouse, July 21, 2010 18:48, 5 refactorings, tagged with ruby, block, if

i like this code, but exist...

70089e712ed13abb99bec89bd5bfba77 Talk
# Initial attributes Hash
# 
attributes = {
...

Ruby Ruby Hash Extraction Using ...

by notbrain.myopenid.com, February 24, 2010 23:13, 8 refactorings, tagged with rails, ruby, regex, hash, block

I'm looking for a better wa...

55502f40dc8b7c769880b10874abc9d0 Talk
def init_scite_buffer
        # Check for allready opened files
        res = @director.send_command('savesession', '/tmp/SciTE.session', false)
...

Ruby Wait for file create

by Fu86, February 27, 2008 20:58, No refactoring, tagged with file, timeout, sleep, block

This method sends a command...

Ee0505bbd355292778077fb662c88f13 Talk