lib/inch/language/ruby/code_object/base.rb in inch-0.5.0.rc5 vs lib/inch/language/ruby/code_object/base.rb in inch-0.5.0.rc6
- old
+ new
@@ -1,6 +1,6 @@
-require "forwardable"
+require 'forwardable'
module Inch
module Language
module Ruby
# This is the base class for code object proxies.
@@ -12,11 +12,12 @@
class Base < Inch::CodeObject::Proxy
def language
:ruby
end
- # @return [Boolean] if the current object is an alias for something else
+ # @return [Boolean] if the current object is an alias for something
+ # else
def alias?
!aliased_object.nil?
end
# @return [CodeObject::Proxy] the object the current object is an
@@ -131,11 +132,12 @@
def original_docstring
self[:original_docstring]
end
- # @return [Boolean] +true+ if the object was tagged not to be documented
+ # @return [Boolean] +true+ if the object was tagged not to be
+ # documented
def nodoc?
self[:nodoc?]
end
# @return [CodeObject::Proxy,nil] the parent of the current object
@@ -172,10 +174,10 @@
def source
self[:source]
end
def type
- self.class.to_s.gsub(/Object$/, "")
+ self.class.to_s.gsub(/Object$/, '')
end
# @return [Boolean] +true+ if the object has no documentation at all
def undocumented?
self[:undocumented?]