Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/rtesseract/utils.rb
Overview
Hash
Instance Method Summary collapse
-
#option(attr_name, default) ⇒ Object
return the value and remove from hash.
Instance Method Details
#option(attr_name, default) ⇒ Object
return the value and remove from hash
41 42 43 |
# File 'lib/rtesseract/utils.rb', line 41 def option(attr_name, default) delete(attr_name.to_s) || delete(attr_name) || default end |