File: modifiable.rb

package info (click to toggle)
ruby-stamp 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: ruby: 371; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 121 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
module Modifiable
  def modify(value)
    if @modifier
      @modifier.call(value)
    else
      value
    end
  end
end