Class: DRG::FileContext::MethodDefinition
- Inherits:
-
Definition
- Object
- Definition
- DRG::FileContext::MethodDefinition
- Defined in:
- lib/drg/file_context.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#is_private ⇒ Object
Returns the value of attribute is_private.
Attributes inherited from Definition
Instance Method Summary collapse
-
#initialize(name, line_number, class_name, is_private) ⇒ MethodDefinition
constructor
A new instance of MethodDefinition.
- #method? ⇒ Boolean
Methods inherited from Definition
Methods included from NullDefinition
Constructor Details
#initialize(name, line_number, class_name, is_private) ⇒ MethodDefinition
Returns a new instance of MethodDefinition.
166 167 168 169 |
# File 'lib/drg/file_context.rb', line 166 def initialize(name, line_number, class_name, is_private) super(name, line_number, false) @class_name, @is_private = class_name, is_private end |
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name.
164 165 166 |
# File 'lib/drg/file_context.rb', line 164 def class_name @class_name end |
#is_private ⇒ Object
Returns the value of attribute is_private.
164 165 166 |
# File 'lib/drg/file_context.rb', line 164 def is_private @is_private end |
Instance Method Details
#method? ⇒ Boolean
171 172 173 |
# File 'lib/drg/file_context.rb', line 171 def method? true end |