Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/reek/object_source.rb
Instance Method Summary collapse
-
#to_source ⇒ Object
Constructs a Source representing this object; the source can then be used to generate an abstract syntax tree for the object, which can in turn then be examined for code smells.
Instance Method Details
#to_source ⇒ Object
Constructs a Source representing this object; the source can then be used to generate an abstract syntax tree for the object, which can in turn then be examined for code smells. (This feature is only enabled if you have the ParseTree gem installed.)
50 51 52 |
# File 'lib/reek/object_source.rb', line 50 def to_source Reek::Source.from_object(self) end |