Module: Rabbit::Renderer::Print
- Extended by:
- Utils
- Defined in:
- lib/rabbit/renderer/print.rb,
lib/rabbit/renderer/print/base.rb,
lib/rabbit/renderer/print/cairo.rb,
lib/rabbit/renderer/print/layout.rb,
lib/rabbit/renderer/print/multiple.rb
Defined Under Namespace
Modules: Base
Classes: Cairo, Layout2, LayoutBase, LayoutMore, Multiple
Constant Summary
collapse
- A4_WIDTH =
596
- A4_HEIGHT =
842
- LAYOUT_MAPPING =
[
[2, Layout2],
[3..(1.0/0), LayoutMore],
]
Class Method Summary
collapse
Methods included from Utils
arg_list, collect_classes_under_module, collect_modules_under_module, collect_under_module, combination, compute_bottom_y, compute_left_x, compute_right_x, compute_top_y, corresponding_class_under_module, corresponding_module_under_module, corresponding_objects, drawable_to_pixbuf, ensure_time, events_pending_available?, extract_four_way, find_path_in_load_path, init_by_constants_as_default_value, move_to, move_to_bottom_left, move_to_bottom_right, move_to_top_left, move_to_top_right, parse_four_way, process_pending_events, process_pending_events_proc, quartz?, require_files_under_directory_in_load_path, require_safe, split_number_to_minute_and_second, stringify_hash_key, support_console_input?, support_console_output?, syntax_highlighting_debug?, time, to_class_name, unescape_title, windows?
Class Method Details
.init ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/rabbit/renderer/print.rb', line 11
def init
unless @initialized
@initialized = true
dir = ::File.join("rabbit", "renderer", "print")
require_files_under_directory_in_load_path(dir)
end
end
|
.new(*args, &block) ⇒ Object
19
20
21
22
|
# File 'lib/rabbit/renderer/print.rb', line 19
def new(*args, &block)
init
corresponding_class_under_module(self).new(*args, &block)
end
|
.printable? ⇒ Boolean
24
25
26
27
|
# File 'lib/rabbit/renderer/print.rb', line 24
def printable?
init
not corresponding_class_under_module(self).nil?
end
|