Class: Cheatset::DSL::Cheatsheet
- Defined in:
- lib/cheatset/dsl/cheatsheet.rb
Instance Attribute Summary collapse
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
Instance Method Summary collapse
- #category(&block) ⇒ Object
-
#initialize(&block) ⇒ Cheatsheet
constructor
A new instance of Cheatsheet.
Constructor Details
#initialize(&block) ⇒ Cheatsheet
Returns a new instance of Cheatsheet.
8 9 10 11 |
# File 'lib/cheatset/dsl/cheatsheet.rb', line 8 def initialize(&block) @categories = [] super(&block) end |
Instance Attribute Details
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
4 5 6 |
# File 'lib/cheatset/dsl/cheatsheet.rb', line 4 def categories @categories end |