class Barometer::Support::Matchers::Walker
Attributes
value[R]
Public Class Methods
new(value)
click to toggle source
# File lib/barometer/support/matchers/walker.rb, line 7 def initialize(value) @value = value end
Public Instance Methods
follow(paths)
click to toggle source
# File lib/barometer/support/matchers/walker.rb, line 11 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