def add_state(state, value = false)
      @states[state] = [
        factory.composite_state(self.class.name, state),
        value
      ]

      classify_state @states[state]
    end
def add_state(state, value = false)
      @states[state] = [
        factory.composite_state(self.class.name, state),
        value
      ]

      classify_state @states[state]
    end
Add a state to the element. A state toggles a CSS class with the
 same (dasherized) name as the state.
 If the state is thruthy (not nil or true) the CSS class is added
 to the element. Otherwise the CSS class is removed.

 @param [String] state The state name to add to the element
 @param [value] value The initial enabled/disabled state value