class Veto::ValidateBlock
Public Class Methods
build(*args)
click to toggle source
# File lib/veto/blocks/validate_block.rb, line 3 def self.build(*args) block = new(*args) block << MethodCheck.new(block.method_name) block end
new(method_name, options={})
click to toggle source
Calls superclass method
Veto::ConditionalBlock::new
# File lib/veto/blocks/validate_block.rb, line 9 def initialize(method_name, options={}) @method_name = method_name super(options) end
Public Instance Methods
method_name()
click to toggle source
# File lib/veto/blocks/validate_block.rb, line 14 def method_name @method_name end