Module: HyperAPI

Defined in:
lib/hyper_api.rb,
lib/hyper_api/version.rb

Defined Under Namespace

Classes: Base

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.new_class(&block) ⇒ Object



6
7
8
9
10
# File 'lib/hyper_api.rb', line 6

def self.new_class(&block)
  klass = Class.new(Base)
  klass.class_eval(&block) if block_given?
  klass
end