Class: Katana::Output
- Inherits:
-
Object
- Object
- Katana::Output
- Defined in:
- ext/katana/rb_katana.c
Instance Method Summary collapse
- #declarations ⇒ Katana::Array<Katana::Declaration>?
- #errors ⇒ Katana::Array<Katana::Error>
- #selectors ⇒ Katana::Array<Katana::Selector>?
- #stylesheet ⇒ Katana::Stylesheet?
Instance Method Details
#declarations ⇒ Katana::Array<Katana::Declaration>?
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'ext/katana/rb_katana.c', line 31 VALUE rb_output_declarations(VALUE self) { KatanaOutput *c_output; Data_Get_Struct(self, KatanaOutput, c_output); if (c_output->declarations) { VALUE array = Data_Wrap_Struct(rb_KArray, NULL, NULL, c_output->declarations); VALUE sing = rb_singleton_class(array); rb_define_method(sing, "each", rb_declaration_each, 0); return array; } else return Qnil; } |
#errors ⇒ Katana::Array<Katana::Error>
95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'ext/katana/rb_katana.c', line 95 VALUE rb_output_errors(VALUE self) { KatanaOutput *c_output; Data_Get_Struct(self, KatanaOutput, c_output); VALUE array = Data_Wrap_Struct(rb_KArray, NULL, NULL, &c_output->errors); VALUE sing = rb_singleton_class(array); rb_define_method(sing, "each", rb_error_each, 0); return array; } |
#selectors ⇒ Katana::Array<Katana::Selector>?
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'ext/katana/rb_katana.c', line 52 VALUE rb_output_selectors(VALUE self) { KatanaOutput *c_output; Data_Get_Struct(self, KatanaOutput, c_output); if (c_output->selectors) { VALUE array = Data_Wrap_Struct(rb_KArray, NULL, NULL, c_output->selectors); VALUE sing = rb_singleton_class(array); rb_define_method(sing, "each", rb_selector_each, 0); return array; } else return Qnil; } |
#stylesheet ⇒ Katana::Stylesheet?
17 18 19 20 21 22 23 24 25 26 |
# File 'ext/katana/rb_katana.c', line 17 VALUE rb_output_stylesheet(VALUE self) { KatanaOutput *c_output; Data_Get_Struct(self, KatanaOutput, c_output); if (c_output->stylesheet) return Data_Wrap_Struct(rb_Stylesheet, NULL, NULL, c_output->stylesheet); else return Qnil; } |