Sha256: c2c49d9ccd8d259697da4e81ef440b3a94026acbf24fc1cac6f326e956cbc65d

Contents?: true

Size: 365 Bytes

Versions: 9

Compression:

Stored size: 365 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
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
github_cli-0.4.1 lib/github_cli/dsl.rb
github_cli-0.4.0 lib/github_cli/dsl.rb
github_cli-0.3.1 lib/github_cli/dsl.rb
github_cli-0.3.0 lib/github_cli/dsl.rb
github_cli-0.2.1 lib/github_cli/dsl.rb
github_cli-0.2.0 lib/github_cli/dsl.rb
github_cli-0.1.3 lib/github_cli/dsl.rb
github_cli-0.1.2 lib/github_cli/dsl.rb
github_cli-0.1.1 lib/github_cli/dsl.rb