Initial commit
[yaffs-website] / node_modules / node-sass / src / sass_types / boolean.h
1 #ifndef SASS_TYPES_BOOLEAN_H
2 #define SASS_TYPES_BOOLEAN_H
3
4 #include <nan.h>
5 #include "value.h"
6 #include "sass_value_wrapper.h"
7
8 namespace SassTypes
9 {
10   class Boolean : public SassTypes::Value {
11     public:
12       static Boolean& get_singleton(bool);
13       static v8::Local<v8::Function> get_constructor();
14
15       Sass_Value* get_sass_value();
16       v8::Local<v8::Object> get_js_object();
17
18       static NAN_METHOD(New);
19       static NAN_METHOD(GetValue);
20
21     private:
22       Boolean(bool);
23
24       bool value;
25       Nan::Persistent<v8::Object> js_object;
26
27       static Nan::Persistent<v8::Function> constructor;
28       static bool constructor_locked;
29   };
30 }
31
32 #endif