Sha256: 1c6d64d3b14d1f68e82e927230135dd9a29a831455ea16e4b1858a0b17ba39e0

Contents?: true

Size: 431 Bytes

Versions: 8

Compression:

Stored size: 431 Bytes

Contents

module Odania
	module Config
		class Layout < PageBase
			attr_accessor :config

			def initialize
				reset
			end

			def dump
				result = super
				result['config'] = config unless config.nil?
				result
			end

			def load(data, group_name)
				reset
				super(data, group_name)
				unless data['config'].nil?
					self.config = data['config']
				end
			end

			def reset
				super
				self.config = {}
			end
		end
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
odania-0.1.0 lib/odania/config/layout.rb
odania-0.0.39 lib/odania/config/layout.rb
odania-0.0.38 lib/odania/config/layout.rb
odania-0.0.37 lib/odania/config/layout.rb
odania-0.0.36 lib/odania/config/layout.rb
odania-0.0.35 lib/odania/config/layout.rb
odania-0.0.34 lib/odania/config/layout.rb
odania-0.0.33 lib/odania/config/layout.rb