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