Sha256: cf3025e65b12cac51c4fb0141416a2d37dc9f1c54bcce409687cb18d508daa51

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

module MetaInspector

  # Encapsulates matching for method_missing and respond_to? for meta tags methods
  class MetaTagsDynamicMatch
    attr_reader :meta_tag

    def initialize(method_name)
      if method_name.to_s =~ /^meta_(.+)/
        @meta_tag = $1
      end
    end

    def match?
      @meta_tag
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metainspector-1.17.3 lib/meta_inspector/meta_tags_dynamic_match.rb
metainspector-1.17.2 lib/meta_inspector/meta_tags_dynamic_match.rb
metainspector-1.17.1 lib/meta_inspector/meta_tags_dynamic_match.rb