Sha256: 7a8e304ecd7aca1bc5f8acc370ccb3a00ead1f31300f2e721a12578db92b96d9
Contents?: true
Size: 702 Bytes
Versions: 6
Compression:
Stored size: 702 Bytes
Contents
module Astrails module Safe class Stream def initialize(parent) @parent = parent end def id @id ||= @parent.id end def config @config ||= @parent.config end def filename @parent.filename end def compressed? @parent && @parent.compressed? end protected def self.human_name name.split('::').last.downcase end def kind @parent ? @parent.kind : self.class.human_name end def expand(path) path . gsub(/:kind\b/, kind) . gsub(/:id\b/, id) . gsub(/:timestamp\b/, timestamp) end end end end
Version data entries
6 entries across 6 versions & 4 rubygems