Class: Hybook::Picture
- Inherits:
-
Object
- Object
- Hybook::Picture
- Defined in:
- lib/hybook/type/picture.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, path) ⇒ Picture
constructor
A new instance of Picture.
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
#path ⇒ Object
Returns the value of attribute path.
8 9 10 |
# File 'lib/hybook/type/picture.rb', line 8 def path @path end |
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/hybook/type/picture.rb', line 7 def title @title end |