Class: Flatware::RSpec::ExampleNotification
- Inherits:
-
Object
- Object
- Flatware::RSpec::ExampleNotification
- Defined in:
- lib/flatware/rspec/example_notification.rb
Instance Attribute Summary collapse
-
#formatted ⇒ Object
readonly
Returns the value of attribute formatted.
Instance Method Summary collapse
- #fully_formatted(i, _ = nil) ⇒ Object
-
#initialize(notification) ⇒ ExampleNotification
constructor
A new instance of ExampleNotification.
Constructor Details
#initialize(notification) ⇒ ExampleNotification
7 8 9 |
# File 'lib/flatware/rspec/example_notification.rb', line 7 def initialize(notification) @formatted = notification.fully_formatted '!', default_colorizer end |
Instance Attribute Details
#formatted ⇒ Object (readonly)
Returns the value of attribute formatted.
6 7 8 |
# File 'lib/flatware/rspec/example_notification.rb', line 6 def formatted @formatted end |
Instance Method Details
#fully_formatted(i, _ = nil) ⇒ Object
11 12 13 |
# File 'lib/flatware/rspec/example_notification.rb', line 11 def fully_formatted(i, _=nil) formatted.sub '!', i.to_s end |