Sha256: 08dfeb0ff0af01e17dc6f64507fcbfc2c68256d2ce4f37cbe60d544dd6be1eb2

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

class Marty::Helper
  include Delorean::Model

  delorean_fn :sleep, sig: 1 do
    |seconds|
    Kernel.sleep seconds
  end

  delorean_fn :my_ip, sig:0 do
    Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
  end

  delorean_fn :git, sig:0 do
    [my_ip, ENV['DELAYED_VER']]
  end

  delorean_fn :range_step, sig: 3 do
    |rstart, rend, step|
    (rstart..rend).step(step).to_a
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
marty-1.1.5 app/models/marty/helper.rb
marty-1.1.4 app/models/marty/helper.rb
marty-1.1.3 app/models/marty/helper.rb
marty-1.1.2 app/models/marty/helper.rb
marty-1.1.1 app/models/marty/helper.rb
marty-1.0.54 app/models/marty/helper.rb
marty-1.0.53 app/models/marty/helper.rb