Sha256: 36d58170ec8a44ce7084fae949770b9b9ab448dbdfe83b9060c84e549ef7ac25
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
module SimpleHelpers class Config def self.helpers @helpers ||= {} end def self.helpers=(helper_methods) @helpers = helper_methods end def self.options @options ||= [] end def self.options=(*args) options_list = SimpleHelpers::Support.certified_array!(args) @options = options_list.collect{|c| c.to_sym } end def self.has_option?(option) @options.include?(option.to_sym) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_helpers-2.0.0.beta | lib/simple_helpers/config.rb |