Sha256: 24b4e59bf05c5d12279cb268d3b16ff5f873a05f7d72aacf0d0390527b73a487

Contents?: true

Size: 496 Bytes

Versions: 3

Compression:

Stored size: 496 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
micromicro-1.1.0 lib/micro_micro/implied_property.rb
micromicro-1.0.0 lib/micro_micro/implied_property.rb
micromicro-0.1.0 lib/micro_micro/implied_property.rb