Module: Dieses::Application
- Defined in:
- lib/dieses/application.rb,
lib/dieses/application/pen.rb,
lib/dieses/application/batch.rb,
lib/dieses/application/paper.rb,
lib/dieses/application/sheet.rb,
lib/dieses/application/canvas.rb,
lib/dieses/application/common.rb,
lib/dieses/application/sheets.rb,
lib/dieses/application/cli/multi.rb,
lib/dieses/application/cli/single.rb,
lib/dieses/application/mixins/lines.rb,
lib/dieses/application/sheets/graph.rb,
lib/dieses/application/sheets/lined.rb,
lib/dieses/application/sheets/print.rb,
lib/dieses/application/sheets/ruled.rb,
lib/dieses/application/sheets/table.rb,
lib/dieses/application/mixins/scribes.rb,
lib/dieses/application/mixins/squares.rb,
lib/dieses/application/sheets/cursive.rb,
lib/dieses/application/sheets/italics.rb,
lib/dieses/application/sheets/lettering.rb,
lib/dieses/application/sheets/thumbnail.rb,
lib/dieses/application/sheets/spencerian.rb,
lib/dieses/application/sheets/copperplate.rb
Defined Under Namespace
Modules: Batch, CLI, Mixins, Paper, Sheets
Classes: Canvas, Pen, Sheet
Constant Summary
collapse
- Error =
Class.new Error
- NotImplementedError =
Class.new Error
- NonApplicableError =
Class.new Error
- Style =
Class.new struct
- Param =
Class.new struct
- Orientation =
Geometry::Rect::Orientation
- Ruler =
Support::Ruler
Class Method Summary
collapse
Class Method Details
.produce(sheet, variant: Undefined, paper: Paper.default, orientation: Orientation.default, **render_args) ⇒ Object
16
17
18
|
# File 'lib/dieses/application.rb', line 16
def produce(sheet, variant: Undefined, paper: Paper.default, orientation: Orientation.default, **render_args)
sheet(sheet, variant: variant, paper: paper, orientation: orientation).produce(**render_args)
end
|
.sheet(sheet, variant: Undefined, paper: Paper.default, orientation: Orientation.default) ⇒ Object
20
21
22
|
# File 'lib/dieses/application.rb', line 20
def sheet(sheet, variant: Undefined, paper: Paper.default, orientation: Orientation.default)
Sheets.sheet(sheet.to_sym).new(Paper.public_send(paper.to_sym).orient(orientation.to_sym), variant: variant)
end
|