Sha256: f2bb81a4dc94908d0847951a786a260c7dfbd53f7f621250de2cfce12bd0aecd
Contents?: true
Size: 204 Bytes
Versions: 2
Compression:
Stored size: 204 Bytes
Contents
Class.class_eval do def name_alias name = nil if name name.must_be.a String name.must_not_be.blank @name_alias = name.to_s else @name_alias || self.name end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-ext-0.4.1 | lib/ruby_ext/class.rb |
ruby-ext-0.4.0 | lib/ruby_ext/class.rb |