Skip to content

Feature Request: Allow passing font information as Hash parameter #10

Description

Hi.

The README mentions this:

document = Document.new(Font.new(Font::ROMAN, 'Times New Roman'))

I think this is a bit cumbersome to type, especially the ().

Would it be nicer if we allow something like:

document = Document.new( :font => 'Times New Roman' )

?

If so, I could try to check what would be required to make this happen.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions