Class: SFRP::Input::Set
- Inherits:
-
Object
- Object
- SFRP::Input::Set
- Defined in:
- lib/sfrp/input/set.rb
Instance Method Summary collapse
-
#append_source_file(fmodule_uri, content) ⇒ Object
Append a source file and return missing source file names.
-
#initialize(&block) ⇒ Set
constructor
A new instance of Set.
- #to_raw ⇒ Object
Constructor Details
#initialize(&block) ⇒ Set
Returns a new instance of Set.
8 9 10 11 |
# File 'lib/sfrp/input/set.rb', line 8 def initialize(&block) @source_file_h = {} block.call(self) if block end |
Instance Method Details
#append_source_file(fmodule_uri, content) ⇒ Object
Append a source file and return missing source file names.
24 25 26 |
# 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 |