class GitPrepareBranch::Configurator::ScreenDSL
Attributes
screen[R]
Public Class Methods
new(screen)
click to toggle source
# File lib/git-prepare-branch/configurator.rb, line 40 def initialize(screen) @screen = screen end
Public Instance Methods
apply(&block)
click to toggle source
# File lib/git-prepare-branch/configurator.rb, line 44 def apply(&block) self.tap do |s| instance_exec(&block) end end
command(*args)
click to toggle source
# File lib/git-prepare-branch/configurator.rb, line 50 def command(*args) screen.add_command(*args) end
description(value)
click to toggle source
# File lib/git-prepare-branch/configurator.rb, line 54 def description(value) screen.description = value end
display(command)
click to toggle source
# File lib/git-prepare-branch/configurator.rb, line 58 def display(command) screen.display = command end
heading(message, options={})
click to toggle source
# File lib/git-prepare-branch/configurator.rb, line 62 def heading(message, options={}) screen.heading = message screen.heading_style = options[:style] end
title(value)
click to toggle source
# File lib/git-prepare-branch/configurator.rb, line 67 def title(value) screen.title = value end