Sha256: b5a621dc38d03d272269dd23b82fd8dcaebddd3b26478e4442879b816e581003

Contents?: true

Size: 312 Bytes

Versions: 12

Compression:

Stored size: 312 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 # default item_id
      self.klass ||= name.camelize.constantize # default klass
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
netzke-core-0.12.2 lib/netzke/core/component_config.rb
netzke-core-0.12.1 lib/netzke/core/component_config.rb
netzke-core-0.12.0 lib/netzke/core/component_config.rb
netzke-core-0.12.0.rc1 lib/netzke/core/component_config.rb
netzke-core-0.12.0.beta lib/netzke/core/component_config.rb
netzke-core-0.11.0 lib/netzke/core/component_config.rb
netzke-core-0.10.1 lib/netzke/core/component_config.rb
netzke-core-0.10.0 lib/netzke/core/component_config.rb
netzke-core-0.9.0 lib/netzke/core/component_config.rb
netzke-core-0.10.0.rc2 lib/netzke/core/component_config.rb
netzke-core-0.10.0.rc1 lib/netzke/core/component_config.rb
netzke-core-0.9.0.rc1 lib/netzke/core/component_config.rb