Class: Hybook::Picture

Inherits:
Object
  • Object
show all
Defined in:
lib/hybook/type/picture.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, path) ⇒ Picture

Returns a new instance of Picture.



10
11
12
13
# File 'lib/hybook/type/picture.rb', line 10

def initialize( title, path )
  @title      = title
  @path       = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



8
9
10
# File 'lib/hybook/type/picture.rb', line 8

def path
  @path
end

#titleObject

Returns the value of attribute title.



7
8
9
# File 'lib/hybook/type/picture.rb', line 7

def title
  @title
end