Sha256: 191d705dece226b9dfe97cc1482210fdfc05ff4f5ee2a356afe277d2ede176ef

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

# The Stuff
class OpenDSL < Module

  #
  def initialize(&block)
    instance_eval(&block) if block_given?
  end

  #
  def method_missing(s, *a, &b)
    if block_given?
      define_method(s, &b)
    else
      super(s, *a, &b)
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opendsl-1.0.0 lib/opendsl.rb