test/fixtures/simple/lib/role_namespaces.rb in inch-0.1.3 vs test/fixtures/simple/lib/role_namespaces.rb in inch-0.1.4
- old
+ new
@@ -1,30 +1,42 @@
# @deprecated
# @see PureNamespace
PUBLIC_ROOT_CONSTANT = :foo
+PRIVATE_ROOT_CONSTANT = :foo
+private_constant :PRIVATE_ROOT_CONSTANT
+
class String
def foobar
self + 'foobar!'
end
end
module InchTest
# You would want to use it like this:
#
- # CodeExample.new
+ # CodeExample.new
#
class CodeExample
end
# You would want to use it like this:
#
- # CodeExample.new
+ # MultipleCodeExamples.new
#
- # CodeExample.new # => something
+ # MultipleCodeExamples.new # => something
#
class MultipleCodeExamples
+ end
+
+ # You would want to use it like this:
+ #
+ # @example
+ # MultipleCodeExamples2.new
+ # MultipleCodeExamples2.new # => something
+ #
+ class MultipleCodeExamples2
end
module PureNamespace
end