Class: Homebrew::Livecheck::Strategy::ExtractPlist::Item Private

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
livecheck/strategy/extract_plist.rb,
sorbet/rbi/dsl/homebrew/livecheck/strategy/extract_plist/item.rbi

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bundle_versionObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute bundle_version

Returns:

  • (Object)

    the current value of bundle_version



30
31
32
# File 'livecheck/strategy/extract_plist.rb', line 30

def bundle_version
  @bundle_version
end

#short_versionT.untyped (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • args (T.untyped)
  • block (T.untyped)

Returns:

  • (T.untyped)


42
# File 'livecheck/strategy/extract_plist.rb', line 42

delegate short_version: :bundle_version

#versionT.untyped (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • args (T.untyped)
  • block (T.untyped)

Returns:

  • (T.untyped)


38
# File 'livecheck/strategy/extract_plist.rb', line 38

delegate version: :bundle_version

Instance Method Details

#to_hHash{Symbol => Hash{Symbol => String}}

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



45
46
47
48
49
# File 'livecheck/strategy/extract_plist.rb', line 45

def to_h
  {
    bundle_version: bundle_version&.to_h,
  }.compact
end