Code quality is very important to us. We're sending you this challenge so that we can evaluate your coding skills with Ruby.
- Object-oriented
- Clean code
- Consistent style
LOWER(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(TRIM('My String'), ':', ''), ')', ''), '(', ''), ',', ''), '\\', ''), '\/', ''), '\"', ''), '?', ''), '\'', ''), '&', ''), '!', ''), '.', ''), ' ', '-'), '--', '-'), '--', '-')) AS `post_name` |
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Date extends Kohana_Date | |
{ | |
/** | |
* Take a numerical representation of a month (e.g. '04') and return it as a human readable string (e.g. 'April') | |
* | |
* @param mixed numerical representation of month | |
* @return string | |
*/ |