Skip to content
Browse files

Use the special YARD type "Boolean" instead of [TrueClass, FalseClass]

  • Loading branch information...
1 parent 9c9f26a commit 73221af226351a4bfb64e1f5cb82ceeee24d228a @dkubb dkubb committed Jul 8, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 lib/virtus/attribute.rb
  2. +2 −2 lib/virtus/attribute/boolean.rb
  3. +1 −1 lib/virtus/typecast/boolean.rb
View
4 lib/virtus/attribute.rb
@@ -190,7 +190,7 @@ def self.inherited(descendant)
# @example
# Virtus::Attribute::String.primitive?('String') # => true
#
- # @return [TrueClass, FalseClass]
+ # @return [Boolean]
#
# @api public
def self.primitive?(value)
@@ -266,7 +266,7 @@ def initialize(name, options = {})
# Virtus::Attribute::String.complex? # => false
# Virtus::Attribute::Array.complex? # => true
#
- # @return [TrueClass, FalseClass]
+ # @return [Boolean]
#
# @api public
def complex?
View
4 lib/virtus/attribute/boolean.rb
@@ -26,7 +26,7 @@ class Boolean < Object
# Virtus::Attribute::Boolean.primitive?(1) # => false
# Virtus::Attribute::Boolean.primitive?('true') # => false
#
- # @return [TrueClass,FalseClass]
+ # @return [Boolean]
#
# @api public
def self.primitive?(value)
@@ -37,7 +37,7 @@ def self.primitive?(value)
#
# @see Virtus::Typecast::Boolean.call
#
- # @return [TrueClass,FalseClass]
+ # @return [Boolean]
#
# @api private
def typecast_to_primitive(value)
View
2 lib/virtus/typecast/boolean.rb
@@ -17,7 +17,7 @@ class Boolean
#
# @param [Integer, String]
#
- # @return [TrueClass, FalseClass]
+ # @return [Boolean]
#
# @api public
def self.call(value)

0 comments on commit 73221af

Please sign in to comment.
Something went wrong with that request. Please try again.