Sha256: 7ee676582fa8935226f70e6eecdc76de292e779d9295b851b69e50366f810dcd
Contents?: true
Size: 651 Bytes
Versions: 7
Compression:
Stored size: 651 Bytes
Contents
module Riddle class Configuration class Section class << self attr_accessor :settings end settings = [] def valid? true end private def settings_body self.class.settings.select { |setting| !send(setting).nil? }.collect { |setting| if send(setting) == "" conf = " #{setting} = " else conf = Array(send(setting)).collect { |set| " #{setting} = #{set}" } end conf.length == 0 ? nil : conf }.flatten.compact end end end end
Version data entries
7 entries across 7 versions & 2 rubygems