Class: Priscilla::Makeup
- Inherits:
-
Object
- Object
- Priscilla::Makeup
- Extended by:
- Forwardable
- Defined in:
- lib/priscilla/makeup.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #decorate(message, options = {}) ⇒ Object
-
#initialize(config) ⇒ Makeup
constructor
A new instance of Makeup.
Constructor Details
#initialize(config) ⇒ Makeup
Returns a new instance of Makeup.
9 10 11 |
# File 'lib/priscilla/makeup.rb', line 9 def initialize(config) @config = config.clone end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/priscilla/makeup.rb', line 6 def config @config end |
Instance Method Details
#decorate(message, options = {}) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/priscilla/makeup.rb', line 13 def decorate(, = {}) override_config() = .to_s [decorated_line, (), decorated_line] .map { |string| string << "\n" }.join end |