Class: Riddl::Wrapper::ResourceChecker
- Inherits:
-
Object
- Object
- Riddl::Wrapper::ResourceChecker
- Defined in:
- lib/ruby/riddl/wrapper/resourcechecker.rb
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(doc) ⇒ ResourceChecker
constructor
A new instance of ResourceChecker.
Constructor Details
#initialize(doc) ⇒ ResourceChecker
Returns a new instance of ResourceChecker.
4 5 6 |
# File 'lib/ruby/riddl/wrapper/resourcechecker.rb', line 4 def initialize(doc) @doc = doc end |
Instance Method Details
#check ⇒ Object
8 9 10 |
# File 'lib/ruby/riddl/wrapper/resourcechecker.rb', line 8 def check check_rec_resources(@doc.find("/des:description/des:resource")) end |