Sha256: b0beb6faee1548a00212496f0dfd88ec7eea1890b88f3869957921a8765b6355

Contents?: true

Size: 482 Bytes

Versions: 16

Compression:

Stored size: 482 Bytes

Contents

#!/usr/bin/env ruby
$: << File.dirname(__FILE__)+'/../lib'
require 'configliere'
Settings.use :config_block

Settings.define :passenger
Settings.define :dest_time, :type => DateTime
Settings :passenger => 'einstein', :dest_time => '1955-11-05'

Settings.finally do |c|
  p [self, 'finally', c[:passenger], c.passenger]
  # Einstein the dog should only be sent one minute into the future.
  c.dest_time = (Time.now + 60) if c.passenger == 'einstein'
end
Settings.resolve!
p Settings

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
configliere-0.3.4 examples/config_block_script.rb
configliere-0.3.3 examples/config_block_script.rb
configliere-0.2.3 examples/config_block_script.rb
configliere-0.3.2 examples/config_block_script.rb
configliere-0.3.1 examples/config_block_script.rb
configliere-0.3.0 examples/config_block_script.rb
configliere-0.2.2 examples/config_block_script.rb
configliere-0.2.1 examples/config_block_script.rb
configliere-0.1.1 examples/config_block_script.rb
configliere-0.1.0 examples/config_block_script.rb
configliere-0.0.9 examples/config_block_script.rb
configliere-0.0.8 examples/config_block_script.rb
configliere-0.0.7 examples/config_block_script.rb
configliere-0.0.6 examples/config_block_script.rb
configliere-0.0.5 examples/config_block_script.rb
configliere-0.0.4 examples/config_block_script.rb