class Harpy::Collection
Attributes
item[R]
items[R]
to_a[R]
to_ary[R]
Public Class Methods
new(attrs = nil)
click to toggle source
Calls superclass method
# File lib/harpy/collection.rb, line 5 def initialize(attrs = nil) attrs = attrs || {} @items = attrs.delete :items super attrs end
Public Instance Methods
persisted?()
click to toggle source
# File lib/harpy/collection.rb, line 10 def persisted? true end
Private Instance Methods
method_missing(method, *args, &blk)
click to toggle source
Calls superclass method
# File lib/harpy/collection.rb, line 18 def method_missing(method, *args, &blk) if items.respond_to? method items.send method, *args, &blk else super end end