module Volt::Modes
Modes
provide a way to effect the state inside of a block that can be checked from elsewhere. This is very useful if you have some flag you may want to change without needing to pass all of the way through some other code.
Public Class Methods
included(base)
click to toggle source
# File lib/volt/utils/modes.rb, line 48 def self.included(base) base.send :extend, ClassMethods end