1
2
3
4
  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 block, ruby, if

i like this code, but exist...

70089e712ed13abb99bec89bd5bfba77 Talk
1
2
3
4
# Initial attributes Hash
# 
attributes = {
...

Ruby Ruby Hash Extraction Using ...

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

I'm looking for a better wa...

Avatar Talk
1
2
3
4
    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