Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A monkey patch for the archer:

  class RubyWarrior::Space
    def archer?
      self.unit.kind_of? RubyWarrior::Units::Archer
    end
  end


Similarly, include this in the patch for .wizard?:

  def wizard?
    self.unit.kind_of? RubyWarrior::Units::Wizard
  end




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: