Module: Experience

Defined in:
lib/experience.rb,
lib/experience/version.rb

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Instance Method Details

#content(name, locator) ⇒ Object



2
3
4
5
6
# File 'lib/experience.rb', line 2

def content name, locator
  define_singleton_method name do
    platform.get_content(locator)
  end
end

#read {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Experience)

    the object that the method was called on



8
9
10
# File 'lib/experience.rb', line 8

def read
  yield(self)
end