Module: T7s

Defined in:
lib/t7s.rb,
lib/t7s/idol.rb,
lib/t7s/version.rb,
lib/t7s/idol/name.rb

Defined Under Namespace

Classes: Idol

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.method_missing(name, *args) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/t7s.rb', line 9

def self.method_missing(name, *args)
  if T7s::Idol.valid?(name)
    T7s::Idol.find_by_name(name)
  else
    T7s::Idol.send(name, *args)
  end
rescue NoMethodError
  super
end