class Gemwarrior::SandJewel
Public Class Methods
new()
click to toggle source
Calls superclass method
Gemwarrior::Item::new
# File lib/gemwarrior/entities/items/sand_jewel.rb, line 8 def initialize super self.name = 'sand_jewel' self.name_display = 'Sand Jewel' self.description = 'As blue (or is it violet? or brown?) as it is brittle, this shiny rock feels warm to the touch.' end
Public Instance Methods
use(world)
click to toggle source
# File lib/gemwarrior/entities/items/sand_jewel.rb, line 16 def use(world) puts 'You lift the sand jewel to the sky; rays of sunlight refract through it and nearly blind you.' { type: nil, data: nil } end