Class: Mumukit::Auth::Slug::Normalized

Inherits:
Mumukit::Auth::Slug show all
Defined in:
lib/mumukit/auth/slug.rb

Instance Attribute Summary

Attributes inherited from Mumukit::Auth::Slug

#first, #second

Instance Method Summary collapse

Methods inherited from Mumukit::Auth::Slug

#==, any, #eql?, from_options, #hash, #inspect, join, join_s, #match_first, #match_second, normalize, #normalized_s, parse, #rebase, #to_mumukit_slug, #to_s

Constructor Details

#initializeNormalized

Returns a new instance of Normalized.



132
133
134
135
# File 'lib/mumukit/auth/slug.rb', line 132

def initialize(*)
  super
  _normalize!
end

Instance Method Details

#_normalize!Object



130
# File 'lib/mumukit/auth/slug.rb', line 130

alias_method :_normalize!, :normalize!

#normalizeObject



137
138
139
# File 'lib/mumukit/auth/slug.rb', line 137

def normalize
  self
end

#normalize!Object



141
142
143
# File 'lib/mumukit/auth/slug.rb', line 141

def normalize!
  self
end

#normalized?Boolean

Returns:

  • (Boolean)


145
146
147
# File 'lib/mumukit/auth/slug.rb', line 145

def normalized?
  true
end