There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

paholg ,

Works even better in Ruby, as the code as given is valid, you just need to monkey patch length:


<span style="color:#323232;">#!/usr/bin/env ruby
</span><span style="color:#323232;">
</span><span style="color:#323232;">module DayLength
</span><span style="color:#323232;">  def length
</span><span style="color:#323232;">    if ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].include? self
</span><span style="color:#323232;">      "24 hours"
</span><span style="color:#323232;">    else
</span><span style="color:#323232;">      super
</span><span style="color:#323232;">    end
</span><span style="color:#323232;">  end
</span><span style="color:#323232;">end
</span><span style="color:#323232;">
</span><span style="color:#323232;">class String
</span><span style="color:#323232;">  prepend DayLength
</span><span style="color:#323232;">end
</span><span style="color:#323232;">
</span><span style="color:#323232;">day = "Monday"
</span><span style="color:#323232;">
</span><span style="color:#323232;">x = day.length
</span><span style="color:#323232;">
</span><span style="color:#323232;">print(x)
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines