Class: ApiSketch::DSL::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/api_sketch/dsl/base.rb

Overview

All DSL clases should inherit this Base class

Direct Known Subclasses

AttributeParser, Attributes, Headers, Parameters, Responses

Instance Method Summary collapse

Instance Method Details

#use_shared_block(name) ⇒ Object



4
5
6
# File 'lib/api_sketch/dsl/base.rb', line 4

def use_shared_block(name)
  self.instance_eval(&::ApiSketch::Model::SharedBlock.find(name))
end