lib/roda/endpoints/endpoint/class_interface.rb in roda-endpoints-0.3.4 vs lib/roda/endpoints/endpoint/class_interface.rb in roda-endpoints-0.3.5
- old
+ new
@@ -45,12 +45,14 @@
@ns ||= name.gsub(/^Roda::Endpoints::/, '').underscore.tr('/', '.')
end
# @return [Symbol]
def type
- @type ||= Inflecto.underscore(Inflecto.demodulize(
- name || superclass.name
- )).to_sym
+ @type ||= Inflecto.underscore(
+ Inflecto.demodulize(
+ name || superclass.name
+ )
+ ).to_sym
end
# @param [Symbol] verb
# @param [Proc] block
# @return [Symbol] name of the defined method