Class: Webspicy::Configuration::SingleYmlFile::SingleYmlFileScope
- Inherits:
-
Webspicy::Configuration::Scope
- Object
- Webspicy::Configuration::Scope
- Webspicy::Configuration::SingleYmlFile::SingleYmlFileScope
- Defined in:
- lib/webspicy/configuration/single_yml_file.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Attributes inherited from Webspicy::Configuration::Scope
Instance Method Summary collapse
- #each_specification(*args) {|config.factory.specification(file.read, nil, self)| ... } ⇒ Object
- #each_specification_file(*args) {|file| ... } ⇒ Object
-
#initialize(config, file) ⇒ SingleYmlFileScope
constructor
A new instance of SingleYmlFileScope.
Methods inherited from Webspicy::Configuration::Scope
#data_system, #each_counterexamples, #each_example, #each_generated_counterexamples, #each_service, #each_testcase, #find_test_case, #get_client, #parse_schema, #to_real_url
Constructor Details
#initialize(config, file) ⇒ SingleYmlFileScope
Returns a new instance of SingleYmlFileScope.
7 8 9 10 |
# File 'lib/webspicy/configuration/single_yml_file.rb', line 7 def initialize(config, file) super(config) @file = file end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
11 12 13 |
# File 'lib/webspicy/configuration/single_yml_file.rb', line 11 def file @file end |
Instance Method Details
#each_specification(*args) {|config.factory.specification(file.read, nil, self)| ... } ⇒ Object
18 19 20 21 |
# File 'lib/webspicy/configuration/single_yml_file.rb', line 18 def each_specification(*args, &bl) return enum_for(:each_specification) unless block_given? yield config.factory.specification(file.read, nil, self) end |
#each_specification_file(*args) {|file| ... } ⇒ Object
13 14 15 16 |
# File 'lib/webspicy/configuration/single_yml_file.rb', line 13 def each_specification_file(*args, &bl) return enum_for(:each_specification_file) unless block_given? yield(file) end |