lib/spnet/storage/block_state.rb
def make_block args
    raise ArgumentError, "args does not have :sample_rate key" unless args.has_key?(:sample_rate)
    
    klass = find_class(@class_sym)
    block = klass.new :sample_rate => args[:sample_rate]
    block.restore_state self
    
    return block
  end
# Produce a Block object from the current BlockState object.
Produce a Block object from the current BlockState object.
Produce a Block object from the current BlockState object .
def make_block args
    raise ArgumentError, "args does not have :sample_rate key" unless args.has_key?(:sample_rate)
    klass = find_class(@class_sym)
    block = klass.new :sample_rate => args[:sample_rate]
    block.restore_state self
    return block
  end
def make_block args raise ArgumentError , "args does not have :sample_rate key" unless args . has_key? ( :sample_rate ) klass = find_class ( @class_sym ) block = klass . new :sample_rate => args [ :sample_rate ] block . restore_state self return block end
Produce a Block object from the current BlockState object.
Produce a Block object from the current BlockState object .
args