module Lolita::Utils
Public Class Methods
dynamic_string(str, options = {})
click to toggle source
# File lib/lolita/utils.rb, line 4 def self.dynamic_string(str, options = {}) response_str = if str.respond_to?(:call) str.call(str,options) else str end response_str || options[:default] end