This method returns whether or not the encapsulated DataBag is empty. @param context the context the method is being executed in i @return true if the encapsulated DAtaBag is empty, false otherwise
(ThreadContext context)
| 262 | i @return true if the encapsulated DAtaBag is empty, false otherwise |
| 263 | */ |
| 264 | @JRubyMethod(name = "empty?") |
| 265 | public RubyBoolean isEmpty(ThreadContext context) { |
| 266 | return RubyBoolean.newBoolean(context.getRuntime(), internalDB.size() == 0); |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * This method returns a string representation of the RubyDataBag. If given an optional |
no test coverage detected