Class: OpenModule

Class | OpenModule
In: | lib/more/facets/openmodule.rb
Parent: | Module

### Methods

method_missing new

### Public Class methods

new(&block)

[Source]

    # File lib/more/facets/openmodule.rb, line 4
      def initialize(&block)
        instance_eval(&block) if block_given?
      end

### Public Instance methods

method_missing(s, *a, &b)

[Source]

    # File lib/more/facets/openmodule.rb, line 8
      def method_missing(s, *a, &b)
        if block_given?
          define_method(s, &b)
        else
          super
        end
      end

[Validate]