Sha256: fac363443b26591a7629c541cde858e6ac6ea689dd691e4ab2bdae40d8c71331
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
module Surrounded module Context module Seclusion # Set a named constant and make it private def private_const_set(name, const) unless role_const_defined?(name) const = const_set(name, const) private_constant name.to_sym end const end # Create attr_reader for the named methods and make them private def private_attr_reader(*method_names) attr_reader(*method_names) private(*method_names) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
surrounded-1.1.0 | lib/surrounded/context/seclusion.rb |