Sha256: 2756be333fb12285f08e702c5c97a897038780eb5304fa1885e40c3609123879

Contents?: true

Size: 265 Bytes

Versions: 5

Compression:

Stored size: 265 Bytes

Contents

# typed: true
# frozen_string_literal: false

require 'frontman/config'

module AppHelper
  extend T::Sig

  sig { returns(T::Boolean) }
  def build?
    Frontman::Config.get(:mode) == 'build'
  end

  sig { returns(T::Boolean) }
  def serve?
    !build?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
frontman-ssg-0.1.1 lib/frontman/helpers/app_helper.rb
frontman-ssg-0.1.0 lib/frontman/helpers/app_helper.rb
frontman-ssg-0.0.4 lib/frontman/helpers/app_helper.rb
frontman-ssg-0.0.3 lib/frontman/helpers/app_helper.rb
frontman-ssg-0.0.2 lib/frontman/helpers/app_helper.rb