Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flexible API #1

Open
khoan opened this issue Aug 11, 2016 · 0 comments
Open

flexible API #1

khoan opened this issue Aug 11, 2016 · 0 comments

Comments

@khoan
Copy link
Member

khoan commented Aug 11, 2016

# support path like object that responds to :to_s to get fullpath
Tembed.call Pathname.new('/path/to/font.ttf')

# support multiple paths as arguments
Tembed.call '/path/to/font1.ttf', Pathname.new('/path/to/font2.ttf')

# support array of paths as arguments
Tembed.call ['/path/to/font1.ttf', Pathname.new('/path/to/font2.ttf')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant