Sha256: 1a867332b58951fcf76f60ee347ee86ceae407ddccd5a268a04bdee9a66291ef
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true module MicroMicro class ImpliedProperty < Property IMPLIED_PROPERTY_PARSERS_MAP = { 'name' => Parsers::ImpliedNamePropertyParser, 'photo' => Parsers::ImpliedPhotoPropertyParser, 'url' => Parsers::ImpliedUrlPropertyParser }.freeze # @return [Boolean] def implied? true end # @return [Boolean] def item_node? false end private def parser @parser ||= IMPLIED_PROPERTY_PARSERS_MAP[name].new(self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
micromicro-2.0.1 | lib/micro_micro/implied_property.rb |
micromicro-2.0.0 | lib/micro_micro/implied_property.rb |