Class: Hotchoc::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hotchoc/base.rb

Direct Known Subclasses

Album, Hotchoc::Blocks::Base, File, Page, Post, Thumbnail, Topic

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
# File 'lib/hotchoc/base.rb', line 5

def initialize(item = {})
  @item = item
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



3
4
5
# File 'lib/hotchoc/base.rb', line 3

def item
  @item
end