ztk 1.4.7 → 1.4.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,9 @@ module ZTK::DSL::Core
18
18
  module ClassMethods
19
19
 
20
20
  def attribute(key, options={})
21
+ @attributes ||= {}
22
+ @attributes[key] = options[:default]
23
+
21
24
  send(:define_method, key) do |*args|
22
25
  if args.count == 0
23
26
  attributes[key]
data/lib/ztk/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.4.7"
4
+ VERSION = "1.4.8"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -264,7 +264,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  segments:
266
266
  - 0
267
- hash: 3653747974308376947
267
+ hash: 1371839736310854390
268
268
  required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  none: false
270
270
  requirements:
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  version: '0'
274
274
  segments:
275
275
  - 0
276
- hash: 3653747974308376947
276
+ hash: 1371839736310854390
277
277
  requirements: []
278
278
  rubyforge_project:
279
279
  rubygems_version: 1.8.25