Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple Open Nomencalture DSL System

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 demo
Octocat-spinner-32 lib
Octocat-spinner-32 var
Octocat-spinner-32 work
Octocat-spinner-32 .gemspec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .ruby
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 .yardopts
Octocat-spinner-32 Assembly
Octocat-spinner-32 COPYING.rdoc
Octocat-spinner-32 DEMO.rdoc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 HISTORY.rdoc
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 README.rdoc
README.rdoc

OpenDSL

Homepage | Source Code | Mailing List | Issue Tracker

DESCRIPTION

OpenDSL provides an open nomenclature for writing domain specific instructions. The idea is inline with the idea of duck-typing. You can allow domain instructions to be given up front free of restriction, then applying them later their correctness plays out as they are utilized.

The library is especailly useful for plugins systems.

RELEASE NOTES

Please see HISTORY.rdoc file.

SYNOPSIS

There are a few different ways in which this library can be put to use, but the basic idea for all of them can be demonstrated simply enough.

Foo = OpenDSL.new do
  foo do
    'foo'
  end
end

class Something
  include Foo

  def foobar
    foo + 'bar'
  end
end

OpenDSL.new creates a subclass of Module. Indeed, this library was orginally called OpenModule, but the name was changed to focus on it's utility, rather than it's implementation. Since an OpenDSL object is a module you can use it just like any other module.

HOW TO INSTALL

To install with RubyGems simply open a console and type:

gem install opendsl

Site installation requires Setup.rb (gem install setup), then download the tarball package and type:

tar -xvzf openmodule-1.0.0.tgz
cd opendsl-1.0.0.tgz
sudo setup.rb all

Windows users use 'ruby setup.rb all'.

COPYRIGHTS

Copyright © 2009 Thomas Sawyer

This program is ditributed unser the terms of the FreeBSD license.

See COPYING.rdoc file for details.

Something went wrong with that request. Please try again.