Class: String

Inherits:
Object show all
Extended by:
Fr::Monoid
Defined in:
lib/fr/monoid/string.rb

Class Method Summary collapse

Methods included from Fr::Monoid

filter, guard, sum

Class Method Details

.plus(a, b) ⇒ Object



8
9
10
# File 'lib/fr/monoid/string.rb', line 8

def plus(a, b)
  a + b
end

.zeroObject



4
5
6
# File 'lib/fr/monoid/string.rb', line 4

def zero
  ""
end