Skip to content

Commit

Permalink
Added option to create readonly attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
plribeiro3000 committed Dec 17, 2013
1 parent 4c9bcab commit 60aa7d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fog/core/attributes.rb
Expand Up @@ -66,6 +66,8 @@ def #{name}=(new_#{name})
attributes[:#{name}] = [*new_#{name}]
end
EOS
when :readonly
#do not create a setter
else
if squash = options[:squash]
class_eval <<-EOS, __FILE__, __LINE__
Expand Down

0 comments on commit 60aa7d4

Please sign in to comment.