Sha256: 32502f20cdc23b3944cd26b14e8bd4dd311d94da34436c7fd48dbd500d35cfdc

Contents?: true

Size: 157 Bytes

Versions: 15

Compression:

Stored size: 157 Bytes

Contents

require 'myrrha/coerce'

class Foo
  def initialize(arg)
    @arg = arg
  end
  def self.coerce(arg)
    Foo.new(arg)
  end
end

Myrrha.coerce(:hello, Foo) 

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
myrrha-3.1.0 examples/coerce_foo.rb
myrrha-3.0.0 examples/coerce_foo.rb
myrrha-3.0.0.rc7 examples/coerce_foo.rb
myrrha-3.0.0.rc6 examples/coerce_foo.rb
myrrha-3.0.0.rc5 examples/coerce_foo.rb
myrrha-3.0.0.rc4 examples/coerce_foo.rb
myrrha-3.0.0.rc3 examples/coerce_foo.rb
myrrha-3.0.0.rc2 examples/coerce_foo.rb
myrrha-3.0.0.rc1 examples/coerce_foo.rb
myrrha-2.0.0 examples/coerce_foo.rb
myrrha-1.2.2 examples/coerce_foo.rb
myrrha-1.2.1 examples/coerce_foo.rb
myrrha-1.2.0 examples/coerce_foo.rb
myrrha-1.1.0 examples/coerce_foo.rb
myrrha-1.0.0 examples/coerce_foo.rb