lib/ruby_ext/class.rb in ruby-ext-0.2.16 vs lib/ruby_ext/class.rb in ruby-ext-0.4.0

- old
+ new

@@ -1,9 +1,9 @@ Class.class_eval do def name_alias name = nil if name - name.should! :be_a, String - name.should_not_be! :blank + name.must_be.a String + name.must_not_be.blank @name_alias = name.to_s else @name_alias || self.name end end \ No newline at end of file