class RubyLeiningen::Commands::Config
Attributes
command_block[RW]
subcommand_block[RW]
Public Class Methods
new()
click to toggle source
# File lib/ruby_leiningen/commands.rb, line 53 def initialize self.command_block = lambda { |command| command } self.subcommand_block = lambda { |sub| sub } end
Public Instance Methods
on_command_builder(&block)
click to toggle source
# File lib/ruby_leiningen/commands.rb, line 58 def on_command_builder(&block) self.command_block = block self end
on_subcommand_builder(&block)
click to toggle source
# File lib/ruby_leiningen/commands.rb, line 63 def on_subcommand_builder(&block) self.subcommand_block = block self end