Class: Sharemotion::Sharer

Inherits:
Object
  • Object
show all
Defined in:
lib/sharemotion/sharers/sharer.rb

Direct Known Subclasses

SHMEmail, SHMFacebook, SHMSms, SHMTwitter

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sharer_titleObject

Returns the value of attribute sharer_title.



5
6
7
# File 'lib/sharemotion/sharers/sharer.rb', line 5

def sharer_title
  @sharer_title
end

Instance Method Details

#initWithItem(item) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



7
8
9
10
11
# File 'lib/sharemotion/sharers/sharer.rb', line 7

def initWithItem(item, &block)
  @item = item.merge_keys_for_sharer(self)
  yield(self) if block_given?
  self
end