Class: Wardrobe::Plugins::Validation::BlockHandler
- Inherits:
-
Object
- Object
- Wardrobe::Plugins::Validation::BlockHandler
- Defined in:
- lib/wardrobe/plugins/validation/block_handler.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(&blk) ⇒ BlockHandler
constructor
A new instance of BlockHandler.
Constructor Details
#initialize(&blk) ⇒ BlockHandler
Returns a new instance of BlockHandler.
46 47 48 |
# File 'lib/wardrobe/plugins/validation/block_handler.rb', line 46 def initialize(&blk) @result = instance_exec(&blk) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
44 45 46 |
# File 'lib/wardrobe/plugins/validation/block_handler.rb', line 44 def result @result end |