aboutsummaryrefslogtreecommitdiff
path: root/level.rb
blob: 9a34afc84ccd3afb84ef0c95c6933812ebc54c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class Level
  def initialize(&block)
    @interfaces = []
    @description = ""
    @count = 0
    @clicks = 3

    self.instance_eval(&block)
  end

  attr_reader :description, :clicks

  def interfaces
    (["Interfaces:"] + @@interfaces).join("\n  ")
  end
end