Files
ystavakylaecard/sparks/assets/1.5.1/libraries/coffeescript/yy/Access.php
Ismo Vuorinen 7e73994e40 Sparks: Assets, 1.5.1
http://getsparks.org/packages/assets/versions/HEAD/show

Creates our minified and combined .js and .css files
2013-07-11 07:46:29 +03:00

32 lines
489 B
PHP
Executable File

<?php
namespace CoffeeScript;
class yy_Access extends yy_Base
{
public $children = array('name');
function constructor($name, $tag = NULL)
{
$this->name = $name;
$this->name->as_key = TRUE;
$this->soak = $tag === 'soak';
return $this;
}
function compile($options, $level = NULL)
{
$name = $this->name->compile($options);
return preg_match(IDENTIFIER, $name) ? ".{$name}" : "[{$name}]";
}
function is_complex()
{
return FALSE;
}
}
?>