1 2 3 4
class Item def raw_tag_list; "one, two, three, four, five"; end def public_tags; [<#Tag name=two>, <#Tag name=five>, <#Tag name=one>, <#Tag name=four>, <#Tag name=three>]; end ...
Ruby Tag ordering code
Is there a faster way to do...
1 2 3 4
x = 'My String' x.kind_of? String # => true ...
Ruby x.kind_of? MyClass or x.cla...
It seems like these two are...
1 2 3 4
<?php class RequestFile ...
PHP Universal File Download Class
by Chris Dean,
August 16, 2008 11:21,
4 refactorings, tagged with php, 5, universal, file, download, class
After finding different hos...
1 2 3 4
class XML_QNC
{
private $reader = "";
...
PHP XMLReader to Array Class
XMLReader is fast and uses ...
1 2 3 4
static public function invoke($hook) {
$packages = array();
$results = array();
...
PHP Dynamically invoking static...
Hey guys, I should have rea...
1 2 3 4
class String def postal? self.match(/[a-zA-Z]{1}\d{1}[a-zA-Z]{1}([\x20-])*\d{1}[a-zA-Z]{1}\d{1}/) ? true : false ...
Ruby Is This String Postal?
We've had the debate over w...
Created this reader class f...