lib/coco/options/option.rb in coveragebook_components-0.5.6 vs lib/coco/options/option.rb in coveragebook_components-0.5.7

- old
+ new

@@ -38,21 +38,8 @@ if from.any? && !from.include?(val) raise ArgumentError, "`#{val}` is not a valid #{name} value.\n\tAvailable options: #{from}" end @value = val end - - def to_h - h = { - name: name, - alias: @alias, - required: required?, - private: private?, - from: from, - default: default - } - h[:value] = @value unless undefined? - h - end end end end