tainbox icon indicating copy to clipboard operation
tainbox copied to clipboard

supress_tainbox_initializer is not enought cool

Open JelF opened this issue 8 years ago • 3 comments

Scenario:

  1. i need to supress initializer
  2. i need to set default values

JelF avatar Aug 13 '16 13:08 JelF

What's the exact problem? Please provide: steps to reproduce / expected result / actual result

dgubitsky avatar Aug 15 '16 16:08 dgubitsky

class Foo
  include Tainbox
  suppress_tainbox_initializer!

  attribute :foo, default: :bar
end

expected Foo.new.foo to eq :bar, got nil

JelF avatar Aug 16 '16 17:08 JelF

would be solved by #13

JelF avatar Apr 16 '18 16:04 JelF