Sha256: 6b5436c43b1ccc735e872aee32f0b12f83b344d0ba64099ee2535d88956c62f8
Contents?: true
Size: 485 Bytes
Versions: 30
Compression:
Stored size: 485 Bytes
Contents
module Sinatra module AssetPack module Configurator def self.included(klass) klass.extend ClassMethods end module ClassMethods def attrib(name) define_method(:"#{name}") { |*a| value = a.first self.instance_variable_set :"@#{name}", value unless value.nil? self.instance_variable_get :"@#{name}" } alias_method(:"#{name}=", :"#{name}") end end end end end
Version data entries
30 entries across 30 versions & 3 rubygems