Sha256: fd93be0907ef99928325fc856f20ba710f9febfa31272e1361747ad345ad9bfe

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

# encoding: utf-8

module GithubCLI
  module DSL
    @@program_name = $0.split(/\//)[-1]
    @@error_block  = nil

    # Defines a program name.
    def program_name(name=nil)
      if name
        @@program_name = name
      end
      @@program_name
    end

    # Defines behaviour on error.
    def on_error(&block)
      @@error_block = block
    end

    def before(&block)
    end

    def configure(&block)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
github_cli-0.5.0 lib/github_cli/dsl.rb
github_cli-0.4.4 lib/github_cli/dsl.rb
github_cli-0.4.3 lib/github_cli/dsl.rb
github_cli-0.4.2 lib/github_cli/dsl.rb