class ButterCMS::Resource

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/butter_cms/resource.rb, line 3
def initialize(attributes = {})
  attributes.each do |attr, value|
    define_singleton_method(attr) { attributes[attr] }
  end
end