Sha256: b5f596522dc928c8ad5b4c20ff91885ee7237bfbbeafb22c831eaa3a2ae01287
Contents?: true
Size: 430 Bytes
Versions: 48
Compression:
Stored size: 430 Bytes
Contents
require 'active_support/concern' module Protobuf module Optionable extend ::ActiveSupport::Concern module ClassMethods def get_option(name) @_optionable_options.try(:[], name) end def set_option(name, value = true) @_optionable_options ||= {} @_optionable_options[name] = value end end def get_option(name) self.class.get_option(name) end end end
Version data entries
48 entries across 48 versions & 4 rubygems