Skip to content
Nick Sutterer edited this page Aug 27, 2015 · 2 revisions

Make it simple to extend Definition

Null objects for options

# extend Definition
class Definition
  builder :default, -> (value) { Uber::Options::Value.new(value) or Null }, 
    null: true

Definition#[] returns Null if nothing set.

Clone this wiki locally