class Fixturama::Changes::Const
@private Stub a constant
Public Class Methods
new(**options)
click to toggle source
# File lib/fixturama/changes/const.rb 18 def initialize(**options) 19 @options = options 20 end
Public Instance Methods
call(example)
click to toggle source
# File lib/fixturama/changes/const.rb 11 def call(example) 12 example.send(:stub_const, name, value) 13 self 14 end
key()
click to toggle source
# File lib/fixturama/changes/const.rb 7 def key 8 name 9 end
Private Instance Methods
name()
click to toggle source
# File lib/fixturama/changes/const.rb 22 def name 23 @options[:const] 24 end
value()
click to toggle source
# File lib/fixturama/changes/const.rb 26 def value 27 @options[:value] 28 end