lib/wiki/extensions.rb
# Generate accessor method with question mark
Generate accessor method with question mark
Generate accessor method with question mark
def question_accessor(*names)
    names.each do |a|
      module_eval %{ def #{a}?; !!@#{a}; end }
    end
  end
def question_accessor ( * names ) names . each do | a | module_eval %{ def #{a}?; !!@#{a}; end } end end
Generate accessor method with question mark
Generate accessor method with question mark
names
<not_specific>