Class: Yap::World::Addons::RcFile

Inherits:
Yap::World::Addon show all
Defined in:
lib/yap/world/addons.rb

Instance Method Summary collapse

Methods included from Yap::World::AddonMethods::ClassMethods

#addon_name, #load_addon, #require

Methods included from Yap::World::AddonMethods::InstanceMethods

#addon_name

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