Module: Gamefic::Stage::ClassMethods

Defined in:
lib/gamefic/stage.rb

Instance Method Summary collapse

Instance Method Details

#expose(*args) ⇒ Object



54
55
56
57
58
# File 'lib/gamefic/stage.rb', line 54

def expose *args
  args.each { |a|
    exposed_methods[a] = nil
  }
end

#exposed_methodsObject



59
60
61
# File 'lib/gamefic/stage.rb', line 59

def exposed_methods
  @@exposed_methods ||= from_superclass(:exposed_methods, {}).dup
end

#mount(*args) ⇒ Object



48
49
50
51
52
53
# File 'lib/gamefic/stage.rb', line 48

def mount *args
  args.each { |a|
    include a
    mounted_modules[a] = nil
  }
end

#mounted_modulesObject



62
63
64
# File 'lib/gamefic/stage.rb', line 62

def mounted_modules
  @@mounted_modules ||= from_superclass(:mounted_modules, {}).dup
end