Skip to content

Instantly share code, notes, and snippets.

def play(*arguments)
result = true
arguments.each do |argument|
case argument
when Hash
value = argument.delete(:value)
play_ssml_for(value, argument)
when RubySpeech::SSML::Speak
play_ssml argument
else
@juandebravo
juandebravo / DrupalClass.php
Created August 8, 2011 06:36 — forked from drslump/DrupalClass.php
Drupal Class to global functions
<?php
class DrupalClass {
static $instances = array();
public function __construct()
{
$class = get_class($this);
if (isset(self::$instances[$class])) return;