module AttributesDSL::InstanceMethods
Defines instance methods for the hash of attributes and its initializer
Attributes
attributes[R]
@!attribute [r] attributes
@return [Hash] the hash of initialized attributes
Public Class Methods
new(attributes = {})
click to toggle source
Initializes the object and sets the hash of its [#attributes]
@param [Hash] attributes
# File lib/attributes_dsl.rb, line 74 def initialize(attributes = {}) @attributes = self.class.attributes.transformer[attributes] end