module Refried::Tube::ClassMethods
Public Instance Methods
tube_mode(mode = nil)
click to toggle source
Acts as both a getter and setter (without = sign) method for the @tube_mode attribute
@param mode [Symbol] what mode to use for puter and getter @return [Symbol] the current mode
# File lib/refried/tube.rb, line 22 def tube_mode(mode = nil) unless mode.nil? self.tube_mode = mode end @tube_mode ||= nil end