Sha256: e642c0485e02e5cabc719fb54d1b8d2175901821fa9fc467930a31e36cb7c282

Contents?: true

Size: 683 Bytes

Versions: 6

Compression:

Stored size: 683 Bytes

Contents

#ifndef SASS_TO_STRING_H
#define SASS_TO_STRING_H

#include <string>

#include "operation.hpp"

namespace Sass {
  using namespace std;

  class Context;
  class Null;

  class To_String : public Operation_CRTP<string, To_String> {
    // import all the class-specific methods and override as desired
    using Operation<string>::operator();
    // override this to define a catch-all
    string fallback_impl(AST_Node* n);

    Context* ctx;

  public:
    To_String(Context* ctx = 0);
    virtual ~To_String();

    string operator()(Null* n);
    string operator()(String_Constant*);

    template <typename U>
    string fallback(U n) { return fallback_impl(n); }
  };
}

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sassc-1.1.2 ext/libsass/to_string.hpp
sassc-1.1.1 ext/libsass/to_string.hpp
sassc-1.1.0 ext/libsass/to_string.hpp
sassc-1.0.0 ext/libsass/to_string.hpp
sassc-0.0.11 ext/libsass/to_string.hpp
sassc-0.0.10 ext/libsass/to_string.hpp