class Ruboty::Dsl
Attributes
ruboty_megen[RW]
Public Class Methods
new()
click to toggle source
# File lib/ruboty/dsl/dsl.rb, line 36 def initialize @ruboty_megen = Ruboty::DslModel.new @ruboty_megen.user_name = 'your github username' @ruboty_megen.gem_class_name = 'your_gem_class_name' @ruboty_megen.gem_name = 'your_gem_name' @ruboty_megen.title = 'title' @ruboty_megen.env = [] @ruboty_megen.dependencies = [] @ruboty_megen.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_megen.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_megen.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_megen.env << e end