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

Already on GitHub? Sign in to your account

error when setting Tidy.default_options = options #5

Closed
dan42 opened this Issue Mar 19, 2013 · 1 comment

Comments

Projects
None yet
2 participants

dan42 commented Mar 19, 2013

Because Tidy.default_options lazily instanciates @default_options, Tidy.default_options = options fails:

require 'tidy_ffi'
TidyFFI::Tidy.default_options = {anchor_as_name:false}
#=> NoMethodError: undefined method `merge_with_options' for nil:NilClass

solution: in tidy.rb use default_options instead of @default_options

@libc libc closed this in 5d6f728 Jul 31, 2013

Owner

libc commented Jul 31, 2013

Thank you.

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