Class: Yap::World::Addons::RcFile
- Inherits:
-
Yap::World::Addon
- Object
- Yap::World::Addon
- Yap::World::Addons::RcFile
- Defined in:
- lib/yap/world/addons.rb
Instance Method Summary collapse
-
#initialize(contents) ⇒ RcFile
constructor
A new instance of RcFile.
- #initialize_world(world) ⇒ Object
Methods included from Yap::World::AddonMethods::ClassMethods
#addon_name, #load_addon, #require
Methods included from Yap::World::AddonMethods::InstanceMethods
Constructor Details
#initialize(contents) ⇒ RcFile
Returns a new instance of RcFile.
71 72 73 |
# File 'lib/yap/world/addons.rb', line 71 def initialize(contents) @contents = contents end |
Instance Method Details
#initialize_world(world) ⇒ Object
75 76 77 |
# File 'lib/yap/world/addons.rb', line 75 def initialize_world(world) world.instance_eval @contents end |