Class: Oncall::Core::Wrapper
- Inherits:
-
Object
- Object
- Oncall::Core::Wrapper
- Defined in:
- lib/oncall/core/wrapper.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #run(reporter) ⇒ Object
Constructor Details
#initialize(file) ⇒ Wrapper
Returns a new instance of Wrapper.
6 7 8 |
# File 'lib/oncall/core/wrapper.rb', line 6 def initialize(file) @file = file end |
Instance Method Details
#run(reporter) ⇒ Object
10 11 12 |
# File 'lib/oncall/core/wrapper.rb', line 10 def run(reporter) Oncall::DSL::Group.new.instance_eval File.read(@file) end |