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


1602
1603
1604
# File 'lib/bullshit.rb', line 1602

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

#covering(&block) ⇒ Object


1536
1537
1538
# File 'lib/bullshit.rb', line 1536

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

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


1567
1568
1569
# File 'lib/bullshit.rb', line 1567

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

#inherited(klass) ⇒ Object


1465
1466
1467
# File 'lib/bullshit.rb', line 1465

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

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


1518
1519
1520
# File 'lib/bullshit.rb', line 1518

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