gn 0.0.1.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gn/dsl.rb +15 -0
  2. metadata +4 -3
@@ -0,0 +1,15 @@
1
+ class Gn
2
+
3
+ module DSL
4
+
5
+ def template(constant, dest, &block)
6
+ klass = Class.new
7
+ klass.send(:define_method, :destination) { dest }
8
+ klass.class_eval(&block) if block_given?
9
+ self.const_set constant, klass
10
+ end
11
+
12
+ end
13
+
14
+ end
15
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2012-06-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mote
18
- requirement: &70117254417960 !ruby/object:Gem::Requirement
18
+ requirement: &70340185824720 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,7 +23,7 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70117254417960
26
+ version_requirements: *70340185824720
27
27
  description: Simple Generator for the masses
28
28
  email:
29
29
  - lucasefe@gmail.com
@@ -33,6 +33,7 @@ extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - bin/gn
36
+ - lib/gn/dsl.rb
36
37
  - LICENSE
37
38
  - Readme.md
38
39
  homepage: http://lucasefe.github.com/gn