Method: BELParser::Resource::FileResourceValue#initialize

Defined in:
lib/bel_parser/resource/file_resource_value.rb

#initialize(dataset, name, encodings) ⇒ FileResourceValue

Returns a new instance of FileResourceValue.



12
13
14
15
16
17
18
19
20
21
# File 'lib/bel_parser/resource/file_resource_value.rb', line 12

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