Class: Audition::Static::GemCalls::Rule

Inherits:
Data
  • Object
show all
Defined in:
lib/audition/static/gem_calls.rb

Overview

One flagged gem: verified means its installed extension binary was read and lacks the declaration; unverified means the lockfile proves compiled code exists but no binary was available to read. A bound rule's namespace IS the extension's own class or module—the gem namespace, a constant assigned an extension-rooted value, or a subclass of either—so reopening it defines methods on extension instances; an unbound rule marks app code that merely holds extension values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gem:, namespace:, verified:, bound: false) ⇒ Rule

Returns a new instance of Rule.



146
147
148
# File 'lib/audition/static/gem_calls.rb', line 146

def initialize(gem:, namespace:, verified:, bound: false)
  super
end

Instance Attribute Details

#bound ⇒ Object (readonly)

Returns the value of attribute bound

Returns:

  • (Object) —

    the current value of bound



145
146
147
# File 'lib/audition/static/gem_calls.rb', line 145

def bound
  @bound
end

#gem ⇒ Object (readonly)

Returns the value of attribute gem

Returns:

  • (Object) —

    the current value of gem



145
146
147
# File 'lib/audition/static/gem_calls.rb', line 145

def gem
  @gem
end

#namespace ⇒ Object (readonly)

Returns the value of attribute namespace

Returns:

  • (Object) —

    the current value of namespace



145
146
147
# File 'lib/audition/static/gem_calls.rb', line 145

def namespace
  @namespace
end

#verified ⇒ Object (readonly)

Returns the value of attribute verified

Returns:

  • (Object) —

    the current value of verified



145
146
147
# File 'lib/audition/static/gem_calls.rb', line 145

def verified
  @verified
end