Skip to content
Snippets Groups Projects
Commit d025e0e7 authored by Markus Reiter's avatar Markus Reiter
Browse files

Fix `--binaries` not using default value.

parent fdd9972a
No related branches found
No related tags found
No related merge requests found
......@@ -24,10 +24,12 @@ module Hbc
if [true, false].include?(default_value)
define_method(:"#{method}?") do
return default_value unless instance_variable_defined?(:"@#{method}")
instance_variable_get(:"@#{method}") == true
end
else
define_method(:"#{method}") do
return default_value unless instance_variable_defined?(:"@#{method}")
instance_variable_get(:"@#{method}")
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment