Module: TinyCore::Role::Guest

Includes:
TinyCore::Role
Defined in:
lib/tiny_core/role/guest.rb

Instance Method Summary collapse

Methods included from TinyCore::Role

included

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/tiny_core/role/guest.rb', line 6

def method_missing(method, *args)
  if method.to_s =~ /^can_.*\?$/
    false
  else
    super
  end
end