Class: Radventure::Furniture

Inherits:
Object
  • Object
show all
Defined in:
lib/radventure/furniture.rb

Overview

Represents an ingame furniture item

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, view, desc) ⇒ Furniture

Furniture constructor

Parameters:

  • name (String)

    The name of the furniture item

  • view (String)

    The initial description of the furniture item

  • desc (String)

    The long description of the furniture item



14
15
16
17
18
# File 'lib/radventure/furniture.rb', line 14

def initialize(name, view, desc)
  @name = name.strip
  @view = view.strip
  @desc = desc.strip
end

Instance Attribute Details

#descObject (readonly)

Returns the value of attribute desc.



6
7
8
# File 'lib/radventure/furniture.rb', line 6

def desc
  @desc
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/radventure/furniture.rb', line 6

def name
  @name
end

#viewObject (readonly)

Returns the value of attribute view.



6
7
8
# File 'lib/radventure/furniture.rb', line 6

def view
  @view
end