lib/active_object/object.rb in active_object-4.0.5 vs lib/active_object/object.rb in active_object-4.0.6
- old
+ new
@@ -58,9 +58,13 @@
def salvage(placeholder = '---')
blank? ? placeholder : self
end
+ def send_chain(*keys)
+ Array(keys).inject(self) { |obj, key| obj.send(*key) }
+ end
+
def string?
is_a?(String)
end
def time?