lib/redd/models/basic_model.rb in redd-0.8.0.pre.2 vs lib/redd/models/basic_model.rb in redd-0.8.0

- old
+ new

@@ -54,9 +54,14 @@ def to_h coerce_all_attributes @attributes end + # @return [Array<self>] an array representation of self + def to_ary + [self] + end + # Checks whether an attribute is supported by method_missing. # @param method_name [Symbol] the method name or attribute to check # @param include_private [Boolean] whether to also include private methods # @return [Boolean] whether the method is handled by method_missing def respond_to_missing?(method_name, include_private = false)