Sha256: 0dbd1a1ae6e71d0d8b37c89ba8cb6347a0da890b738b2e2705c8b952578ac148
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
# encoding: utf-8 module CSD class GlobalOpenStruct def self.method_missing(meth, *args, &block) if meth.to_s.ends_with?('=') class_variable_set("@@#{meth.to_s.chop}".to_sym, *args) else begin class_variable_get("@@#{meth}".to_sym) rescue NameError => e #UI.debug "The option `#{meth}ยด was accessed but not available." # FIXME: This line causes a recursion error :) nil end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
csd-0.1.5 | lib/csd/global_open_struct.rb |
csd-0.1.4 | lib/csd/global_open_struct.rb |
csd-0.1.3 | lib/csd/global_open_struct.rb |