Class: Fried::Test::Autorun
- Inherits:
-
Object
- Object
- Fried::Test::Autorun
- Defined in:
- lib/fried/test/autorun.rb
Defined Under Namespace
Classes: Substitute
Instance Attribute Summary collapse
-
#execute ⇒ Object
Returns the value of attribute execute.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Autorun
constructor
A new instance of Autorun.
Constructor Details
Instance Attribute Details
#execute ⇒ Object
Returns the value of attribute execute.
16 17 18 |
# File 'lib/fried/test/autorun.rb', line 16 def execute @execute end |
Class Method Details
.build ⇒ Object
22 23 24 25 26 |
# File 'lib/fried/test/autorun.rb', line 22 def self.build new.tap do |instance| instance.execute = method(:require) end end |
.call ⇒ Object
32 33 34 35 |
# File 'lib/fried/test/autorun.rb', line 32 def self.call instance = build instance.() end |
Instance Method Details
#call ⇒ Object
28 29 30 |
# File 'lib/fried/test/autorun.rb', line 28 def call execute.("minitest/autorun") end |