Sha256: d1b9e4fd67864c9fb1915516d5b3815989dc1d3f19b123c86c510a385f1153b2

Contents?: true

Size: 315 Bytes

Versions: 4

Compression:

Stored size: 315 Bytes

Contents

module Netzke::Core
  class ComponentConfig < DslConfigBase
    def initialize(name, component)
      self.name = name.to_s
      self.client_config = {}
    end

    def set_defaults!
      self.item_id ||= name
      self.klass ||= self.class_name.try(:constantize) || name.camelize.constantize
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netzke-core-1.0.0.0.pre4 lib/netzke/core/component_config.rb
netzke-core-1.0.0.0.pre3 lib/netzke/core/component_config.rb
netzke-core-1.0.0.0.pre2 lib/netzke/core/component_config.rb
netzke-core-1.0.0.0.pre lib/netzke/core/component_config.rb