Method: Defmastership::Definition#set_attribute

Defined in:
lib/defmastership/definition.rb

#set_attribute(key, value) ⇒ Object

Set an attribute for a given key

Parameters:

  • key (String)

    the attribute’s key

  • value (String)

    the attribute’s value



113
114
115
# File 'lib/defmastership/definition.rb', line 113

def set_attribute(key, value)
  attributes[key] = value
end