Method: Typedocs::BlockSpec#initialize

Defined in:
lib/typedocs/block_spec.rb

#initialize(type, name) ⇒ BlockSpec

Returns a new instance of BlockSpec.

Raises:



3
4
5
6
7
# File 'lib/typedocs/block_spec.rb', line 3

def initialize(type, name)
  raise ArgumentError unless [:req, :opt, :none].include?(type)
  @name = name
  @type = type
end