Class: Array
- Inherits:
-
Object
- Object
- Array
- Includes:
- Raicoto::Inspection
- Defined in:
- lib/raicoto/array/inspection.rb
Instance Method Summary collapse
Methods included from Raicoto::Inspection
Instance Method Details
#_all_for_ls ⇒ Object
4 5 6 |
# File 'lib/raicoto/array/inspection.rb', line 4 def _all_for_ls self end |
#_attribute_names ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/raicoto/array/inspection.rb', line 8 def _attribute_names return [] if empty? case true when first.respond_to?(:attribute_names) first.attribute_names when first.respond_to?(:attributes) first.attributes.keys when first.respond_to?(:keys) first.keys else raise "don't know how to get attribute_names for #{first.inspect}" end end |