Class: Reek::Source
Overview
A Source
object represents a chunk of Ruby source code.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
Instance Method Summary collapse
- #configure(sniffer) ⇒ Object
-
#initialize(code, desc) ⇒ Source
constructor
A new instance of Source.
- #syntax_tree ⇒ Object
Constructor Details
#initialize(code, desc) ⇒ Source
Returns a new instance of Source.
12 13 14 15 |
# File 'lib/reek/adapters/source.rb', line 12 def initialize(code, desc) @source = code @desc = desc end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
10 11 12 |
# File 'lib/reek/adapters/source.rb', line 10 def desc @desc end |