class Songdrop::Collection

Attributes

_properties[R]

Public Class Methods

new(properties={}) click to toggle source
# File lib/songdrop/objects/collection.rb, line 5
def initialize(properties={})
  @_properties = properties
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
Calls superclass method
# File lib/songdrop/objects/collection.rb, line 9
def method_missing(method, *args, &block)
  method = $1 if method =~ /(\S+)\?/
  method = method.to_s
  return @_properties[method] if @_properties.has_key?(method)
  method = method.to_sym # super requires a symbol
  super
end