Class: Pinspec::TargetProfile
- Inherits:
-
Data
- Object
- Data
- Pinspec::TargetProfile
- Defined in:
- lib/pinspec/types.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#clock_sites ⇒ Object
readonly
Returns the value of attribute clock_sites.
-
#construction_kind ⇒ Object
readonly
Returns the value of attribute construction_kind.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#initializer_params ⇒ Object
readonly
Returns the value of attribute initializer_params.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#referenced_constants ⇒ Object
readonly
Returns the value of attribute referenced_constants.
-
#source_range ⇒ Object
readonly
Returns the value of attribute source_range.
-
#takes_block ⇒ Object
readonly
Returns the value of attribute takes_block.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Instance Method Summary collapse
- #clock_dependent? ⇒ Boolean
- #input_params ⇒ Object
- #needs_subject? ⇒ Boolean
- #qualified_name ⇒ Object
- #singleton? ⇒ Boolean
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def class_name @class_name end |
#clock_sites ⇒ Object (readonly)
Returns the value of attribute clock_sites
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def clock_sites @clock_sites end |
#construction_kind ⇒ Object (readonly)
Returns the value of attribute construction_kind
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def construction_kind @construction_kind end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def file_path @file_path end |
#initializer_params ⇒ Object (readonly)
Returns the value of attribute initializer_params
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def initializer_params @initializer_params end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def method_name @method_name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def params @params end |
#referenced_constants ⇒ Object (readonly)
Returns the value of attribute referenced_constants
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def referenced_constants @referenced_constants end |
#source_range ⇒ Object (readonly)
Returns the value of attribute source_range
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def source_range @source_range end |
#takes_block ⇒ Object (readonly)
Returns the value of attribute takes_block
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def takes_block @takes_block end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility
41 42 43 |
# File 'lib/pinspec/types.rb', line 41 def visibility @visibility end |
Instance Method Details
#clock_dependent? ⇒ Boolean
66 67 68 |
# File 'lib/pinspec/types.rb', line 66 def clock_dependent? !clock_sites.empty? end |
#input_params ⇒ Object
70 71 72 |
# File 'lib/pinspec/types.rb', line 70 def input_params initializer_params + params end |
#needs_subject? ⇒ Boolean
58 59 60 |
# File 'lib/pinspec/types.rb', line 58 def needs_subject? !%i[class_method model_instance].include?(construction_kind) end |
#qualified_name ⇒ Object
62 63 64 |
# File 'lib/pinspec/types.rb', line 62 def qualified_name singleton? ? "#{class_name}.#{method_name}" : "#{class_name}##{method_name}" end |
#singleton? ⇒ Boolean
54 55 56 |
# File 'lib/pinspec/types.rb', line 54 def singleton? construction_kind == :class_method end |