Module: Bullshit::Case::CaseExtension

Extended by:
DSLKit::Constant, DSLKit::DSLAccessor
Includes:
Bullshit::CommonConstants, ModuleFunctions
Defined in:
lib/bullshit.rb

Overview

All subclasses of Case are extended with this module.

Defined Under Namespace

Classes: Autocorrelation, Covering, Histogram, TruncateData

Instance Method Summary collapse

Methods included from ModuleFunctions

angle, array_window, percent

Instance Method Details

#autocorrelation(enable = nil, &block) ⇒ Object



650
651
652
# File 'lib/bullshit.rb', line 650

def autocorrelation(enable = nil, &block)
  @autocorrelation ||= Autocorrelation.new(enable, &block)
end

#covering(&block) ⇒ Object



584
585
586
# File 'lib/bullshit.rb', line 584

def covering(&block)
  @covering = Covering.new(&block)
end

#histogram(enable = nil, &block) ⇒ Object



615
616
617
# File 'lib/bullshit.rb', line 615

def histogram(enable = nil, &block)
  @histogram ||= Histogram.new(enable, &block)
end

#inherited(klass) ⇒ Object



511
512
513
# File 'lib/bullshit.rb', line 511

def inherited(klass)
  Case.cases << klass
end

#truncate_data(enable = nil, &block) ⇒ Object



566
567
568
# File 'lib/bullshit.rb', line 566

def truncate_data(enable = nil, &block)
  @truncate_data ||= TruncateData.new(enable, &block)
end