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 {|Webspicy.specification(file.read, nil, self)| ... } ⇒ 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_specification_file, #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 {|Webspicy.specification(file.read, nil, self)| ... } ⇒ Object
13 14 15 16 |
# File 'lib/webspicy/configuration/single_yml_file.rb', line 13 def each_specification(&bl) return enum_for(:each_specification) unless block_given? yield Webspicy.specification(file.read, nil, self) end |