Module: Ronin::Model::HasName::InstanceMethods

Defined in:
lib/ronin/model/has_name.rb

Overview

Instance methods that are added when Ronin::Model::HasName is included into a model.

Instance Method Summary collapse

Instance Method Details

#to_sString

Converts the named resource into a String.

Returns:

  • (String)

    The name of the resource.

Since:

  • 1.0.0


85
86
87
# File 'lib/ronin/model/has_name.rb', line 85

def to_s
  self.name.to_s
end