Method: ContentItem#method_missing

Defined in:
lib/content_item.rb

#method_missing(name, *arguments) ⇒ Object



64
65
66
67
68
69
70
71
72
# File 'lib/content_item.rb', line 64

def method_missing(name, *arguments)
  if arguments.length > 0
    attributes[name.to_s.chomp('=')] = arguments.first
  elsif attributes.has_key? name.to_s
    attributes[name.to_s]
  else
    super
  end
end