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

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

Overview

Instance methods that are added when Ronin::DB::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.



112
113
114
# File 'lib/ronin/db/model/has_name.rb', line 112

def to_s
  self.name.to_s
end