public function __toString()
{
$style_text = '';
foreach ($this->rules as $device_name => $rules) {
$device_text = self::parse_rules($rules);
if ($device_text && isset($this->devices[$device_name])) {
$device_text = '@media(max-width: ' . $this->devices[$device_name] . 'px){' . $device_text . '}';
}
$style_text .= $device_text;
}
return $style_text;
}