/usr/lib/ruby/vendor_ruby/tzinfo/timezone_info.rb is in ruby-tzinfo 1.2.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | module TZInfo
# Represents a timezone defined by a data source.
class TimezoneInfo
# The timezone identifier.
attr_reader :identifier
# Constructs a new TimezoneInfo with an identifier.
def initialize(identifier)
@identifier = identifier
end
# Returns internal object state as a programmer-readable string.
def inspect
"#<#{self.class}: #@identifier>"
end
# Constructs a Timezone instance for the timezone represented by this
# TimezoneInfo.
def create_timezone
raise_not_implemented('create_timezone')
end
private
def raise_not_implemented(method_name)
raise NotImplementedError, "Subclasses must override #{method_name}"
end
end
end
|