Class: OpenStruct
Overview
Make OpenStruct a little tiny bit more like a Hash
Instance Method Summary collapse
Instance Method Details
#any? ⇒ Boolean
152 |
# File 'lib/epitools/core_ext/misc.rb', line 152 def any?; !empty?; end |
#blank? ⇒ Boolean
151 |
# File 'lib/epitools/core_ext/misc.rb', line 151 def blank?; empty?; end |
#empty? ⇒ Boolean
150 |
# File 'lib/epitools/core_ext/misc.rb', line 150 def empty?; @table ? @table.empty? : true; end |
#keys ⇒ Object
154 |
# File 'lib/epitools/core_ext/misc.rb', line 154 def keys; @table&.keys || []; end |