module Docks::NamingConventions
Public Class Methods
for(convention)
click to toggle source
# File lib/docks/naming_conventions.rb, line 7 def self.for(convention) if [String, ::Symbol].include?(convention.class) convention = convention.to_sym begin convention = const_get(convention).instance rescue NameError end else convention = convention.instance if convention.kind_of?(Class) end convention.kind_of?(Base) ? convention : nil end