Class: BetaBrite::Memory::Factory
- Inherits:
-
Object
- Object
- BetaBrite::Memory::Factory
- Defined in:
- lib/betabrite/memory.rb
Instance Attribute Summary collapse
-
#memory_list ⇒ Object
readonly
Returns the value of attribute memory_list.
Class Method Summary collapse
- .dots(label, rows, columns) ⇒ Object
- .find(&block) ⇒ Object
- .string(label, size) ⇒ Object
- .text(label, size) ⇒ Object
Instance Attribute Details
#memory_list ⇒ Object (readonly)
Returns the value of attribute memory_list.
36 37 38 |
# File 'lib/betabrite/memory.rb', line 36 def memory_list @memory_list end |
Class Method Details
.dots(label, rows, columns) ⇒ Object
52 53 54 |
# File 'lib/betabrite/memory.rb', line 52 def dots(label, rows, columns) @memory_list << Dots.new(label, rows, columns) end |
.find(&block) ⇒ Object
38 39 40 41 42 |
# File 'lib/betabrite/memory.rb', line 38 def find(&block) @memory_list = [] block.call(self) @memory_list end |