Class: SlimHelperLibrary
- Inherits:
-
Object
- Object
- SlimHelperLibrary
- Defined in:
- lib/rubyslim/slim_helper_library.rb
Constant Summary collapse
- ACTOR_INSTANCE_NAME =
"scriptTableActor"
Instance Attribute Summary collapse
-
#executor ⇒ Object
Returns the value of attribute executor.
Instance Method Summary collapse
- #get_fixture ⇒ Object
-
#initialize(executor = nil) ⇒ SlimHelperLibrary
constructor
A new instance of SlimHelperLibrary.
- #pop_fixture ⇒ Object
- #push_fixture ⇒ Object
Constructor Details
#initialize(executor = nil) ⇒ SlimHelperLibrary
Returns a new instance of SlimHelperLibrary.
5 6 7 8 |
# File 'lib/rubyslim/slim_helper_library.rb', line 5 def initialize(executor = nil) @executor = executor @fixtures = [] end |
Instance Attribute Details
#executor ⇒ Object
Returns the value of attribute executor.
3 4 5 |
# File 'lib/rubyslim/slim_helper_library.rb', line 3 def executor @executor end |
Instance Method Details
#get_fixture ⇒ Object
10 11 12 |
# File 'lib/rubyslim/slim_helper_library.rb', line 10 def get_fixture executor.instance(ACTOR_INSTANCE_NAME) end |
#pop_fixture ⇒ Object
19 20 21 22 |
# File 'lib/rubyslim/slim_helper_library.rb', line 19 def pop_fixture executor.set_instance(ACTOR_INSTANCE_NAME, @fixtures.pop) nil end |
#push_fixture ⇒ Object
14 15 16 17 |
# File 'lib/rubyslim/slim_helper_library.rb', line 14 def push_fixture @fixtures << get_fixture nil end |