Sha256: 681bc368d6df39d600b496f2822b970968813db45e652c4d9751cd11116931d3
Contents?: true
Size: 955 Bytes
Versions: 38
Compression:
Stored size: 955 Bytes
Contents
# -*- coding: utf-8 -*- # # @file # @brief # @author ongaeshi # @date 2012/06/10 module Milkode class DocumentRecord attr_accessor :grnrcd def self.create(grnrcd) if grnrcd DocumentRecord.new grnrcd else nil end end def initialize(grnrcd) @grnrcd = grnrcd end def path @grnrcd.path end def package @grnrcd.package end def restpath @grnrcd.restpath end def content @grnrcd.content end def timestamp @grnrcd.timestamp end def suffix @grnrcd.suffix end def inspect "#<Milkode::DocumentRecord:#{[@grnrcd.path, @grnrcd.package, @grnrcd.restpath, @grnrcd.content, @grnrcd.timestamp, @grnrcd.suffix]}>" end # --- def shortpath DocumentRecord.shortpath(@grnrcd) end def self.shortpath(grnrcd) File.join grnrcd.package, grnrcd.restpath end end end
Version data entries
38 entries across 38 versions & 1 rubygems