lib/apia/defineable.rb
# Ability to set a name (for DSL purposes) but also returns a name
# of the actual class if no new value is provided
#
# @param new_name [String, nil]
# @return [String]
Ability to set a name (for DSL purposes) but also returns a name
of the actual class if no new value is provided
Ability to set a name ( for DSL purposes ) but also returns a name of the actual class if no new value is provided
def name(new_name = nil)
      if new_name
        definition.name = new_name
        return new_name
      end
      super()
    end
def name ( new_name = nil ) if new_name definition . name = new_name return new_name end super ( ) end
Ability to set a name (for DSL purposes) but also returns a name
of the actual class if no new value is provided
Ability to set a name ( for DSL purposes ) but also returns a name of the actual class if no new value is provided
None
String
new_name
<not_specific>
<not_specific>
None