Module: Accessible::ClassMethods

Defined in:
lib/live_ensure/accessible.rb

Instance Method Summary collapse

Instance Method Details

#accessible(*vars) ⇒ Object



7
8
9
10
11
# File 'lib/live_ensure/accessible.rb', line 7

def accessible(*vars)
  vars.each do |var|
    define_method(var.to_s, proc{ @hash["#{var}"] })
  end
end