Class: ComicBook::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/comic_book/page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, name) ⇒ Page

Returns a new instance of Page.



5
6
7
8
# File 'lib/comic_book/page.rb', line 5

def initialize path, name
  @path = path
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/comic_book/page.rb', line 3

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/comic_book/page.rb', line 3

def path
  @path
end