class Ruboty::Dsl
Attributes
ruboty_articlegen[RW]
Public Class Methods
new()
click to toggle source
# File lib/ruboty/dsl/dsl.rb, line 36 def initialize @ruboty_articlegen = Ruboty::DslModel.new @ruboty_articlegen.user_name = 'your user_name username' @ruboty_articlegen.gem_name = 'your_gem_name' @ruboty_articlegen.title = 'title' @ruboty_articlegen.purpose = 'purpose' @ruboty_articlegen.env = [] @ruboty_articlegen.dependencies = [] @ruboty_articlegen.commands = [] end
Public Instance Methods
command() { |c| ... }
click to toggle source
# File lib/ruboty/dsl/dsl.rb, line 30 def command c = Ruboty::Models::Command.new yield(c) @ruboty_articlegen.commands << c end
dependency() { |d| ... }
click to toggle source
# File lib/ruboty/dsl/dsl.rb, line 24 def dependency d = Ruboty::Models::Dependency.new yield(d) @ruboty_articlegen.dependencies << d end
env() { |e| ... }
click to toggle source
# File lib/ruboty/dsl/dsl.rb, line 18 def env e = Ruboty::Models::Env.new yield(e) @ruboty_articlegen.env << e end