Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/aptly/hash.rb
Instance Method Summary collapse
Instance Method Details
#arg(arg, default) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/aptly/hash.rb', line 2 def arg arg, default if self.has_key? arg return self[arg] else return default end end |