Class: AGSniffer

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-rad/ae-rad-libs.rb

Direct Known Subclasses

AGTkSniffer

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sonsObject (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_sonsObject



164
165
166
# File 'ext/ae-rad/ae-rad-libs.rb', line 164

def find_sons

end

#has_sons?Boolean

Returns:

  • (Boolean)


167
168
169
# File 'ext/ae-rad/ae-rad-libs.rb', line 167

def has_sons?
  @sons.length > 0
end