Class: MountainBerryFields::Test
- Inherits:
-
Object
- Object
- MountainBerryFields::Test
- Defined in:
- lib/mountain_berry_fields/test.rb,
lib/mountain_berry_fields/test/always_fail.rb,
lib/mountain_berry_fields/test/always_pass.rb
Overview
Data structure to store the shit passed to the test method
Defined Under Namespace
Modules: Strategy Classes: AlwaysFail, AlwaysPass, RubySyntaxChecker
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(name, options) ⇒ Test
constructor
A new instance of Test.
- #strategy ⇒ Object
Constructor Details
#initialize(name, options) ⇒ Test
Returns a new instance of Test.
10 11 12 |
# File 'lib/mountain_berry_fields/test.rb', line 10 def initialize(name, ) self.name, self. = name, end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/mountain_berry_fields/test.rb', line 8 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/mountain_berry_fields/test.rb', line 8 def @options end |
Instance Method Details
#code ⇒ Object
18 19 20 |
# File 'lib/mountain_berry_fields/test.rb', line 18 def code [:code] end |
#strategy ⇒ Object
14 15 16 |
# File 'lib/mountain_berry_fields/test.rb', line 14 def strategy [:with] end |