Initial commit
[yaffs-website] / node_modules / node-sass / src / sass_types / number.h
1 #ifndef SASS_TYPES_NUMBER_H
2 #define SASS_TYPES_NUMBER_H
3
4 #include <nan.h>
5 #include "sass_value_wrapper.h"
6
7 namespace SassTypes
8 {
9
10   class Number : public SassValueWrapper<Number> {
11     public:
12       Number(Sass_Value*);
13       static char const* get_constructor_name() { return "SassNumber"; }
14       static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **out);
15
16       static void initPrototype(v8::Local<v8::FunctionTemplate>);
17
18       static NAN_METHOD(GetValue);
19       static NAN_METHOD(GetUnit);
20       static NAN_METHOD(SetValue);
21       static NAN_METHOD(SetUnit);
22   };
23 }
24
25 #endif