Class: Oncall::Core::World
- Inherits:
-
Object
- Object
- Oncall::Core::World
- Defined in:
- lib/oncall/core/world.rb
Instance Attribute Summary collapse
-
#suite ⇒ Object
readonly
Returns the value of attribute suite.
Instance Method Summary collapse
-
#initialize ⇒ World
constructor
A new instance of World.
- #register_suite(files) ⇒ Object
Constructor Details
#initialize ⇒ World
Returns a new instance of World.
7 8 9 |
# File 'lib/oncall/core/world.rb', line 7 def initialize @suite = [] end |
Instance Attribute Details
#suite ⇒ Object (readonly)
Returns the value of attribute suite.
5 6 7 |
# File 'lib/oncall/core/world.rb', line 5 def suite @suite end |
Instance Method Details
#register_suite(files) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/oncall/core/world.rb', line 11 def register_suite(files) files.each do |file| wrapper = Oncall::Core::Wrapper.new(file) @suite << wrapper end end |