Sha256: 2489bd1be0dfeb95026b84015c5ccf810b48416ae210aea014831f28ca73c679

Contents?: true

Size: 551 Bytes

Versions: 57

Compression:

Stored size: 551 Bytes

Contents

require_relative 'value'

# FileResourceValue is a {Value} obtained from a Annotation or Namespace
# file.
module BELParser
  module Resource
    class FileResourceValue
      include Value

      attr_reader :dataset, :name, :encodings

      def initialize(dataset, name, encodings)
        @dataset   = dataset
        @name      = name
        @encodings =
          if dataset.annotation_resource? && !dataset.namespace_resource?
            nil
          else
            encodings.chars.map(&:to_sym)
          end
      end

    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
bel_parser-1.1.6-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.6 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.5 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.4-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.4 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.3-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.3 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.2-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.2 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.1-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.1.1 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.8-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.8 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.7-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.7 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.6-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.6 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.5-java lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.5 lib/bel_parser/resource/file_resource_value.rb
bel_parser-1.0.4-java lib/bel_parser/resource/file_resource_value.rb