class IceCube::HashBuilder
Public Class Methods
Source
# File lib/ice_cube/builders/hash_builder.rb, line 3 def initialize(rule = nil) @hash = {validations: {}, rule_type: rule.class.name} end
Public Instance Methods
Source
# File lib/ice_cube/builders/hash_builder.rb, line 11 def []=(key, value) @hash[key] = value end
Source
# File lib/ice_cube/builders/hash_builder.rb, line 7 def validations @hash[:validations] end
Source
# File lib/ice_cube/builders/hash_builder.rb, line 15 def validations_array(type) validations[type] ||= [] end