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