Sha256: 1771aabbd9b21338818a1e9fdcf7487c1891b1fe3df9c5ff978da5edcfd58560

Contents?: true

Size: 312 Bytes

Versions: 6

Compression:

Stored size: 312 Bytes

Contents

require 'parlour'

module FooBar
  class Plugin < Parlour::Plugin
    def generate(root)
      root.create_module(name: 'Foo') do |foo|
        foo.add_comment('This is an example plugin!')
        foo.create_module(name: 'Bar')
        foo.create_module(name: 'Bar', interface: true)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
parlour-0.5.2 plugin_examples/foobar_plugin.rb
parlour-0.5.1 plugin_examples/foobar_plugin.rb
parlour-0.5.0 plugin_examples/foobar_plugin.rb
parlour-0.4.0 plugin_examples/foobar_plugin.rb
parlour-0.3.1 plugin_examples/foobar_plugin.rb
parlour-0.3.0 plugin_examples/foobar_plugin.rb