Sha256: d9ee59813ae9afb20636d4bd308d4c881d59617da8b50a9d1e6421645685699e
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
module Everything class Piece extend Forwardable attr_reader :full_path def initialize(full_path) @full_path = full_path end def content @content ||= Content.new(full_path) end def_delegators :content, :body, :raw_markdown, :title def metadata @metadata ||= Metadata.new(full_path) end def public? metadata['public'] end def name File.basename(full_path) end end end require 'everything/piece/content' require 'everything/piece/metadata'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
everything-core-0.0.7 | lib/everything/piece.rb |