Sha256: c74146a2729733350c6efbc7de757e47e77d93bff990c63cf73ff9b09bd3b290
Contents?: true
Size: 652 Bytes
Versions: 12
Compression:
Stored size: 652 Bytes
Contents
module Yoda module Model module Descriptions class ValueDescription < Base # @return [Store::Objects::Base] attr_reader :value # @param value [Store::Objects::Base] def initialize(value) @value = value end # @return [String] def title "#{value.path}#{value.is_a?(Store::Objects::MetaClassObject) ? '.class' : ''}" end # @return [String] def sort_text value.name.to_s end def to_markdown <<~EOS **#{title}** #{value.document} EOS end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems