module Attributary::DSL::Helpers
Public Instance Methods
_attributary_attribute_set()
click to toggle source
# File lib/attributary/dsl/helpers.rb, line 12 def _attributary_attribute_set @_attributary_attribute_set ||= {} end
_attributary_attributes()
click to toggle source
# File lib/attributary/dsl/helpers.rb, line 24 def _attributary_attributes hash = {} _attributary_attribute_set.keys.each do |k| hash[k] = instance_variable_get(:"@#{k}") end hash end
_attributary_config()
click to toggle source
# File lib/attributary/dsl/helpers.rb, line 8 def _attributary_config @_attributary_config ||= Attributary::Config.new end
_attributary_errors()
click to toggle source
# File lib/attributary/dsl/helpers.rb, line 16 def _attributary_errors @_attributary_errors ||= {} end
_attributary_valid?()
click to toggle source
# File lib/attributary/dsl/helpers.rb, line 32 def _attributary_valid? _attributary_errors.empty? end
attributary(&block)
click to toggle source
# File lib/attributary/dsl/helpers.rb, line 4 def attributary(&block) block.call(_attributary_config) end
attributary_errors()
click to toggle source
# File lib/attributary/dsl/helpers.rb, line 20 def attributary_errors _attributary_errors end