Module: ScaleDSL

Defined in:
lib/scale_dsl/scale_dsl.rb

Defined Under Namespace

Classes: ScaleContext, StringContext

Instance Method Summary collapse

Instance Method Details

#scale(scale_label, &block) ⇒ Object



2
3
4
5
6
# File 'lib/scale_dsl/scale_dsl.rb', line 2

def scale(scale_label, &block)
  scale_ctx = ScaleContext.new scale_label
  scale_ctx.instance_exec &block
  scale_ctx.scale_hash
end