Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/fmq/queue_manager.rb

Overview

add kb, mb and gb methods for easy use in the config file

Instance Method Summary collapse

Instance Method Details

#gbObject



30
31
32
# File 'lib/fmq/queue_manager.rb', line 30

def gb
  self.mb * 1024
end

#kbObject



22
23
24
# File 'lib/fmq/queue_manager.rb', line 22

def kb
  self * 1024
end

#mbObject



26
27
28
# File 'lib/fmq/queue_manager.rb', line 26

def mb
  self.kb * 1024
end