Class: FeatureToggle::Syntax::State

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/feature_toggle/syntax/state.rb

Instance Method Summary collapse

Methods included from Shared

#desc, included, #initialize

Instance Method Details

#value(&block) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/feature_toggle/syntax/state.rb', line 8

def value(&block)
  if block_given?
    @value = block
  else
    @value
  end
end