Class: Priscilla::Configuration
- Inherits:
-
Object
- Object
- Priscilla::Configuration
- Defined in:
- lib/priscilla/configuration.rb
Instance Attribute Summary collapse
-
#decorator ⇒ Object
Returns the value of attribute decorator.
-
#presenter ⇒ Object
Returns the value of attribute presenter.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/priscilla/configuration.rb', line 5 def initialize self.width = 80 self.decorator = ':dancer: ' self.presenter = ->(msg) { puts msg; puts } end |
Instance Attribute Details
#decorator ⇒ Object
Returns the value of attribute decorator.
3 4 5 |
# File 'lib/priscilla/configuration.rb', line 3 def decorator @decorator end |
#presenter ⇒ Object
Returns the value of attribute presenter.
3 4 5 |
# File 'lib/priscilla/configuration.rb', line 3 def presenter @presenter end |
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/priscilla/configuration.rb', line 3 def width @width end |