diff options
| author | mo k <mo@mokhan.ca> | 2012-02-16 23:32:42 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-02-16 23:32:42 -0700 |
| commit | 272c52e0402378d209e96af29a6edce963d8868c (patch) | |
| tree | b68ef4a6c276ec3cfc19e4a1ae79ac191d8e139f /lib | |
| parent | faa9af85891ceee8ea87e01b5b4412d6aa6cbc55 (diff) | |
create anonymous command.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/anonymous_command.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/anonymous_command.rb b/lib/anonymous_command.rb new file mode 100644 index 0000000..767d689 --- /dev/null +++ b/lib/anonymous_command.rb @@ -0,0 +1,8 @@ +class AnonymousCommand + def initialize(block) + @block = block + end + def run + @block.call() + end +end |
