Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Attributes::Boolean

Public Instance Methods

create_setter() click to toggle source
# File lib/fog/core/attributes/boolean.rb, line 4
def create_setter
  model.class_eval             def #{name}=(new_#{name})              attributes[:#{name}] = case new_#{name}              when true,'true'                true              when false,'false'                false              end            end, __FILE__, __LINE__
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.