lib/spnet/core/block.rb
# Produces a BlockState object based on this Block object.
# @return [BlockState]
Produces a BlockState object based on this Block object.
Produces a BlockState object based on this Block object .
def save_state
    params = collect_params
    params.keys.each do |key|
      if params[key] == @initial_params[key]
        params.delete key
      end
    end
    BlockState.new(:class_sym => self.class.to_s.to_sym, :params => params)
  end
def save_state params = collect_params params . keys . each do | key | if params [ key ] == @initial_params [ key ] params . delete key end end BlockState . new ( :class_sym => self . class . to_s . to_sym , :params => params ) end
Produces a BlockState object based on this Block object.
Produces a BlockState object based on this Block object .
# discard the params that are the same as the initial port params
None
BlockState