Class: LovelyRufus::Settings
- Inherits:
-
Struct
- Object
- Struct
- LovelyRufus::Settings
- Defined in:
- lib/lovely_rufus/settings.rb
Instance Attribute Summary collapse
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(args) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(args) ⇒ Settings
Returns a new instance of Settings.
5 6 7 8 |
# File 'lib/lovely_rufus/settings.rb', line 5 def initialize(args) self.width = 72 OptionParser.new(&method(:parse)).parse! args end |
Instance Attribute Details
#width ⇒ Object
Returns the value of attribute width
4 5 6 |
# File 'lib/lovely_rufus/settings.rb', line 4 def width @width end |