class Shoestring::Generic
Attributes
block[R]
message[R]
name[R]
Public Class Methods
new(name, message="Unable to check
click to toggle source
# File lib/shoestring/generic.rb, line 5 def initialize(name, message="Unable to check #{name}", &block) @name = name @message = message @block = block end
Public Instance Methods
check()
click to toggle source
# File lib/shoestring/generic.rb, line 11 def check block.call || abort(message) puts "#{name}: check!" end