Sha256: c9c5a18be9f671b9cc84f9177c5dabab7ce2a639077278954593b6906812015f

Contents?: true

Size: 638 Bytes

Versions: 8

Compression:

Stored size: 638 Bytes

Contents

#define SASS_TO_STRING

#include <string>

#ifndef SASS_OPERATION
#include "operation.hpp"
#endif

namespace Sass {
  using namespace std;

  struct 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);

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sassc-0.0.9 ext/libsass/to_string.hpp
sassc-0.0.8 ext/libsass/to_string.hpp
sassc-0.0.7 ext/libsass/to_string.hpp
sassc-0.0.6 ext/libsass/to_string.hpp
sassc-0.0.5 ext/libsass/to_string.hpp
sassc-0.0.4 ext/libsass/to_string.hpp
sassc-0.0.2 ext/libsass/to_string.hpp
sassc-0.0.1 ext/libsass/to_string.hpp