Class: LovelyRufus::Settings

Inherits:
Struct
  • Object
show all
Defined in:
lib/lovely_rufus/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



4
5
6
# File 'lib/lovely_rufus/settings.rb', line 4

def width
  @width
end