Class: Silas::Eval::Scenario
- Inherits:
-
Struct
- Object
- Struct
- Silas::Eval::Scenario
- Defined in:
- lib/silas/eval.rb
Instance Attribute Summary collapse
-
#approvals ⇒ Object
Returns the value of attribute approvals.
-
#assertions ⇒ Object
Returns the value of attribute assertions.
-
#input ⇒ Object
Returns the value of attribute input.
-
#max_steps ⇒ Object
Returns the value of attribute max_steps.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#steps ⇒ Object
Returns the value of attribute steps.
-
#stubs ⇒ Object
Returns the value of attribute stubs.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
Instance Attribute Details
#approvals ⇒ Object
Returns the value of attribute approvals
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def approvals @approvals end |
#assertions ⇒ Object
Returns the value of attribute assertions
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def assertions @assertions end |
#input ⇒ Object
Returns the value of attribute input
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def input @input end |
#max_steps ⇒ Object
Returns the value of attribute max_steps
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def max_steps @max_steps end |
#metadata ⇒ Object
Returns the value of attribute metadata
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def @metadata end |
#mode ⇒ Object
Returns the value of attribute mode
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def mode @mode end |
#name ⇒ Object
Returns the value of attribute name
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def name @name end |
#steps ⇒ Object
Returns the value of attribute steps
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def steps @steps end |
#stubs ⇒ Object
Returns the value of attribute stubs
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def stubs @stubs end |
#tags ⇒ Object
Returns the value of attribute tags
18 19 20 |
# File 'lib/silas/eval.rb', line 18 def @tags end |
Instance Method Details
#real? ⇒ Boolean
20 |
# File 'lib/silas/eval.rb', line 20 def real? = mode == :real |
#with_mode(m) ⇒ Object
21 |
# File 'lib/silas/eval.rb', line 21 def with_mode(m) = m ? dup.tap { |s| s.mode = m } : self |