Class: AGSniffer
- Inherits:
-
Object
- Object
- AGSniffer
- Defined in:
- ext/ae-rad/ae-rad-libs.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#sons ⇒ Object
readonly
Returns the value of attribute sons.
Instance Method Summary collapse
- #find_sons ⇒ Object
- #has_sons? ⇒ Boolean
-
#initialize(_obj) ⇒ AGSniffer
constructor
A new instance of AGSniffer.
Constructor Details
#initialize(_obj) ⇒ AGSniffer
Returns a new instance of AGSniffer.
159 160 161 162 163 |
# File 'ext/ae-rad/ae-rad-libs.rb', line 159 def initialize(_obj) @obj = _obj @sons = Array.new find_sons end |
Instance Attribute Details
#sons ⇒ Object (readonly)
Returns the value of attribute sons.
158 159 160 |
# File 'ext/ae-rad/ae-rad-libs.rb', line 158 def sons @sons end |
Instance Method Details
#find_sons ⇒ Object
164 165 166 |
# File 'ext/ae-rad/ae-rad-libs.rb', line 164 def find_sons end |
#has_sons? ⇒ Boolean
167 168 169 |
# File 'ext/ae-rad/ae-rad-libs.rb', line 167 def has_sons? @sons.length > 0 end |