Class: Rudoku::Row

Inherits:
Area
  • Object
show all
Defined in:
lib/rudoku.rb

Instance Attribute Summary

Attributes inherited from Area

#board

Instance Method Summary collapse

Methods inherited from Area

#add, #available_nrs, #info, #missing_fields, #remove

Constructor Details

#initialize(b, y) ⇒ Row

Returns a new instance of Row.



307
308
309
310
# File 'lib/rudoku.rb', line 307

def initialize(b, y)
  @y = y
  super
end

Instance Method Details

#typeObject



312
313
314
# File 'lib/rudoku.rb', line 312

def type
  "row #{@y}"
end