class SFRP::Input::Set

Public Class Methods

new(&block) click to toggle source
# File lib/sfrp/input/set.rb, line 8
def initialize(&block)
  @source_file_h = {}
  block.call(self) if block
end

Public Instance Methods

append_source_file(fmodule_uri, content) click to toggle source

Append a source file and return missing source file names.

# File lib/sfrp/input/set.rb, line 24
def append_source_file(fmodule_uri, content)
  @source_file_h[fmodule_uri] = SourceFile.new(fmodule_uri, content)
end
to_raw() click to toggle source
# File lib/sfrp/input/set.rb, line 13
def to_raw
  Raw::Set.new do |dest_set|
    @source_file_h.values.each do |source_file|
      Parser.parse(source_file).each do |element|
        dest_set << element
      end
    end
  end
end