-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding documentation for event hooks, inline method docs, and making …
…a few small tweaks.
- Loading branch information
Showing
10 changed files
with
146 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,4 @@ | |||
README.txt | README.txt | ||
pkg | pkg | ||
doc | |||
test/output | test/output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
module Jake | |||
# The +Helper+ class stores helper methods that can be called from ERB | |||
# when generating source code. Use +jake_helper+ to define new helpers. | |||
class Helper | |||
attr_accessor :build | |||
attr_reader :options | |||
|
|||
def initialize(options = {}) | |||
@options = options | |||
end | |||
|
|||
def scope; binding; end | |||
end | |||
end | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
module Jake | |||
# The +Observer+ class is used in conjunction with Ruby's +Observable+ | |||
# module to provide typed event listeners. Use +jake_hook+ to register | |||
# new listeners in Jakefiles. | |||
class Observer | |||
def initialize(type, &block) | |||
@type, @block = type, block | |||
Build.add_observer(self) | |||
end | |||
|
|||
def update(*args) | |||
@block[*args[1..-1]] if args.first == @type | |||
end | |||
end | |||
end | |||
|
Oops, something went wrong.