Sha256: 924418f4a1579f64df5b875bac55660d1becf35975530cd68c7b088c0d445795
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
module CyberarmEngine class Style def initialize(hash = {}) @hash = hash end def method_missing(method, *args, &block) if method.to_s.end_with?("=") raise "Did not expect more than 1 argument" if args.size > 1 return @hash[method.to_s.sub("=", "").to_sym] = args.first elsif args.size == 0 return @hash[method] else raise ArgumentError, "Did not expect arguments" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cyberarm_engine-0.8.0 | lib/cyberarm_engine/ui/style.rb |