Class: ConsistencyFail::Reporters::HasOne
- Defined in:
- lib/consistency_fail/reporters/has_one.rb
Constant Summary
Constants inherited from Base
Base::GREEN, Base::RED, Base::TERMINAL_WIDTH
Instance Attribute Summary collapse
-
#macro ⇒ Object
readonly
Returns the value of attribute macro.
Instance Method Summary collapse
-
#initialize ⇒ HasOne
constructor
A new instance of HasOne.
Methods inherited from Base
#column_1, #column_headers, #divider, #report, #report_failure_header, #report_index, #report_success, #use_color, #use_default_color
Constructor Details
#initialize ⇒ HasOne
Returns a new instance of HasOne.
8 9 10 |
# File 'lib/consistency_fail/reporters/has_one.rb', line 8 def initialize @macro = :has_one end |
Instance Attribute Details
#macro ⇒ Object (readonly)
Returns the value of attribute macro.
6 7 8 |
# File 'lib/consistency_fail/reporters/has_one.rb', line 6 def macro @macro end |