Sha256: 4c315d3121916c4a3854f83c4f60d6af5e2a1d235e4f636677dd6b4c6cd866ee
Contents?: true
Size: 455 Bytes
Versions: 3
Compression:
Stored size: 455 Bytes
Contents
module Barometer module Matchers class Walker attr_reader :value def initialize(value) @value = value end def follow(paths) path_value = value paths.each do |path| path_value = path_value.send(path) end if path_value.respond_to?(:strftime) path_value.strftime("%Y-%m-%d %H:%M:%S %z") else path_value.to_s end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
barometer-0.9.2 | spec/support/matchers/path.rb |
barometer-0.9.1 | spec/support/matchers/path.rb |
barometer-0.9.0 | spec/support/matchers/path.rb |