# Example script to showcase editor themes.
moduleAwesomeclassYarra< Arraydefmap!options ={},&block@called=trueif options[:direction]==:reverseself.replace reverse.map(&block)elsesuper()endenddefpush*elementssuper*elements.reverse
endendenddefExclaimmessage
message.upcase +" !!"unless$AGITATION_LEVEL==60endEmptyString=%%%EmptyString.scan /[a-zA-Z0-9]*/do
standby =<<-EOS
Stand by for countdown:
EOS
puts standby.lstrip
end
yarra =Awesome::Yarra.new10.times {|i| yarra << i +1}
yarra.map!({:direction=>:reverse})do |number|%{T minus #{number} second#{"s"if number !=1} ...}end
yarra.push Exclaim('Impact'),EmptyString
puts yarra