Class: Society::Analyzer
- Inherits:
-
Object
- Object
- Society::Analyzer
- Defined in:
- lib/society/analyzer.rb
Constant Summary collapse
- DEFAULT_CLASS_NAME =
"Unknown"
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #class_name ⇒ Object
- #constants ⇒ Object
-
#initialize(content) ⇒ Analyzer
constructor
A new instance of Analyzer.
- #methods ⇒ Object
Constructor Details
#initialize(content) ⇒ Analyzer
Returns a new instance of Analyzer.
12 13 14 |
# File 'lib/society/analyzer.rb', line 12 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
8 9 10 |
# File 'lib/society/analyzer.rb', line 8 def content @content end |
Instance Method Details
#class_name ⇒ Object
16 17 18 |
# File 'lib/society/analyzer.rb', line 16 def class_name find_class(parsed) || DEFAULT_CLASS_NAME end |
#constants ⇒ Object
24 25 26 |
# File 'lib/society/analyzer.rb', line 24 def constants @constants ||= constants_from(parsed) end |
#methods ⇒ Object
20 21 22 |
# File 'lib/society/analyzer.rb', line 20 def methods @methods ||= methods_from(parsed) end |