Class: TestBench::Fixture::Controls::Fixture::Example
- Inherits:
-
Object
- Object
- TestBench::Fixture::Controls::Fixture::Example
- Includes:
- TestBench::Fixture
- Defined in:
- lib/test_bench/fixture/controls/fixture.rb
Instance Attribute Summary collapse
-
#actuated ⇒ Object
Returns the value of attribute actuated.
-
#some_argument ⇒ Object
readonly
Returns the value of attribute some_argument.
-
#some_block_argument ⇒ Object
readonly
Returns the value of attribute some_block_argument.
-
#some_keyword_argument ⇒ Object
readonly
Returns the value of attribute some_keyword_argument.
Attributes included from TestBench::Fixture
Instance Method Summary collapse
- #actuated? ⇒ Boolean
- #call ⇒ Object
-
#initialize(some_argument = nil, some_keyword_argument: nil, &some_block_argument) ⇒ Example
constructor
A new instance of Example.
Methods included from TestBench::Fixture
#assert, #assert_raises, assure_boolean, #comment, comment_text_and_disposition, #context, #context!, #detail, #fixture, output, #refute, #refute_raises, #test, #test!, title
Constructor Details
#initialize(some_argument = nil, some_keyword_argument: nil, &some_block_argument) ⇒ Example
Returns a new instance of Example.
18 19 20 21 22 |
# File 'lib/test_bench/fixture/controls/fixture.rb', line 18 def initialize(some_argument=nil, some_keyword_argument: nil, &some_block_argument) @some_argument = some_argument @some_keyword_argument = some_keyword_argument @some_block_argument = some_block_argument end |
Instance Attribute Details
#actuated ⇒ Object
Returns the value of attribute actuated.
12 13 14 |
# File 'lib/test_bench/fixture/controls/fixture.rb', line 12 def actuated @actuated end |
#some_argument ⇒ Object (readonly)
Returns the value of attribute some_argument.
14 15 16 |
# File 'lib/test_bench/fixture/controls/fixture.rb', line 14 def some_argument @some_argument end |
#some_block_argument ⇒ Object (readonly)
Returns the value of attribute some_block_argument.
16 17 18 |
# File 'lib/test_bench/fixture/controls/fixture.rb', line 16 def some_block_argument @some_block_argument end |
#some_keyword_argument ⇒ Object (readonly)
Returns the value of attribute some_keyword_argument.
15 16 17 |
# File 'lib/test_bench/fixture/controls/fixture.rb', line 15 def some_keyword_argument @some_keyword_argument end |
Instance Method Details
#actuated? ⇒ Boolean
24 25 26 |
# File 'lib/test_bench/fixture/controls/fixture.rb', line 24 def actuated? actuated ? true : false end |
#call ⇒ Object
28 29 30 |
# File 'lib/test_bench/fixture/controls/fixture.rb', line 28 def call self.actuated = true end |