class DTK::Client::ViewProcAugmentedSimpleList

Public Class Methods

new(type,command_class,data_type_index=nil) click to toggle source
Calls superclass method
# File lib/view_processor/augmented_simple_list.rb, line 24
def initialize(type,command_class,data_type_index=nil)
  super
  @meta = get_meta(type,command_class)
end

Private Instance Methods

augmented_def?(ordered_hash,ident_info) click to toggle source
# File lib/view_processor/augmented_simple_list.rb, line 34
def augmented_def?(ordered_hash,ident_info)
  return nil unless @meta
  if aug_def =  @meta["#{ordered_hash.object_type}_def".to_sym]
    ident_str = ident_str(ident_info[:ident]||0)
    vals = aug_def[:keys].map{|k|ordered_hash[k.to_s]}
    "#{ident_str}#{aug_def[:fn].call(*vals)}\n"
  end
end
failback_meta(ordered_cols) click to toggle source
# File lib/view_processor/augmented_simple_list.rb, line 28
def failback_meta(ordered_cols)
  nil
end
simple_value_render(ordered_hash,ident_info) click to toggle source
Calls superclass method
# File lib/view_processor/augmented_simple_list.rb, line 31
def simple_value_render(ordered_hash,ident_info)
  augmented_def?(ordered_hash,ident_info) || super
end