You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Ruby named parameters thing doesn't handle so well when we have options that override other options as in layouts. So, let's go back to using hashes in all of our API commands, but implement a more complex set of defaults
The precedence order goes like this:
System-wide defaults, such as :x => 0.
Command-level defaults override system-wide. e.g. `:color => :black' for text
config.yml settings, wherever we support those.
Settings specified by the commands themselves, e.g.text 'blah', x: 5, color: :blue
This means we'll need to change away from Ruby parameters and make use of hash merges along with input handlers that just modify the parameters.
The text was updated successfully, but these errors were encountered:
The Ruby named parameters thing doesn't handle so well when we have options that override other options as in layouts. So, let's go back to using hashes in all of our API commands, but implement a more complex set of defaults
The precedence order goes like this:
:x => 0
.text 'blah', x: 5, color: :blue
This means we'll need to change away from Ruby parameters and make use of hash merges along with input handlers that just modify the parameters.
The text was updated successfully, but these errors were encountered: