Permalink
Browse files

Add the private_class_method declaration after the method

  • Loading branch information...
1 parent 34df0e5 commit 48e7244b821771f26e76d04631891203245644da @dkubb dkubb committed Jul 8, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/virtus/attribute.rb
View
@@ -43,6 +43,8 @@ def self.determine_type_from_attribute(attribute)
attribute
end
+ private_class_method :determine_type_from_attribute
+
# Return the Attribute class given a primitive
#
# @param [Class] primitive
@@ -57,6 +59,8 @@ def self.determine_type_from_primitive(primitive)
descendants.detect { |descendant| primitive <= descendant.primitive }
end
+ private_class_method :determine_type_from_primitive
+
# Return the Attribute class given a string
#
# @param [String] string
@@ -71,7 +75,7 @@ def self.determine_type_from_string(string)
const_get(string) if const_defined?(string)
end
- private_class_method :determine_type_from_attribute, :determine_type_from_primitive, :determine_type_from_string
+ private_class_method :determine_type_from_string
# Returns default options hash for a given attribute class
#

0 comments on commit 48e7244

Please sign in to comment.