Class: ItemList::ItemList
Instance Method Summary collapse
-
#initialize(list) ⇒ ItemList
constructor
A new instance of ItemList.
- #inspect ⇒ Object
- #process ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#inspect ⇒ Object
36 37 38 |
# File 'lib/itemlist.rb', line 36 def inspect to_s end |
#process ⇒ Object
25 |
# File 'lib/itemlist.rb', line 25 def process; end |
#to_s ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/itemlist.rb', line 27 def to_s text = "#{@list.first.starting_to_s.uppercase.add_period} " @list[1..@list.length].each do |i| text += "#{q = i.to_s.uppercase.add_period} " end text = text.rstrip end |