class Dasheets::DSL::Cheatsheet

Attributes

categories[R]

Public Class Methods

new(&block) click to toggle source
Calls superclass method Dasheets::DSL::Base::new
# File lib/dasheets/dsl/cheatsheet.rb, line 8
def initialize(&block)
  @categories = []
  super(&block)
end

Public Instance Methods

category(&block) click to toggle source
# File lib/dasheets/dsl/cheatsheet.rb, line 13
def category(&block)
  @categories << Dasheets::DSL::Category.new(&block)
end