Sha256: 53416b7d234b10e72d2bf4a4fead93a42a61cf9656df5cb9c2bfedb89aa99e67

Contents?: true

Size: 655 Bytes

Versions: 58

Compression:

Stored size: 655 Bytes

Contents

= dslify

Dslify, born out of a need for improvement on Dslify

Add dsl accessors to any class.

Usage:
  class MyClass
    include Dslify
    
    dsl_methods :award, :people
  end
  
  mc = MyClass.new
  mc.award "Tony Award"
  mc.people ["Bob", "Frank", "Ben"]
  
You can set defaults as well:
  class MyClass
    default_options :award => "Tony Award"
  end

Finally, if your tree of available accessors runs higher and longer than
just 1 file, for instance, if you use Parenting, you can set forwarders to 
forward the query up the chain

class MyClass
  forwards_to :parent
end

== Copyright

Copyright (c) 2009 Ari Lerner. See LICENSE for details.

Version data entries

58 entries across 58 versions & 4 rubygems

Version Path
auser-dslify-0.1.0 README.rdoc
auser-poolparty-1.2.10 vendor/gems/dslify/README.rdoc
auser-poolparty-1.2.11 vendor/gems/dslify/README.rdoc
auser-poolparty-1.2.12 vendor/gems/dslify/README.rdoc
auser-poolparty-1.2.3 vendor/gems/dslify/README.rdoc
auser-poolparty-1.2.4 vendor/gems/dslify/README.rdoc
auser-poolparty-1.2.7 vendor/gems/dslify/README.rdoc
auser-poolparty-1.2.8 vendor/gems/dslify/README.rdoc
auser-poolparty-1.2.9 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.0 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.1 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.10 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.11 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.12 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.13 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.14 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.15 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.16 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.17 vendor/gems/dslify/README.rdoc
auser-poolparty-1.3.2 vendor/gems/dslify/README.rdoc