Class: CodeMiner::MagicCommentExpression
- Inherits:
-
Expression
- Object
- Expression
- CodeMiner::MagicCommentExpression
- Defined in:
- lib/codeminer/expressions/magic_comment_expression.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Expression
#args, #block, #delimiter, #src, #token
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(key, value, src) ⇒ MagicCommentExpression
constructor
A new instance of MagicCommentExpression.
- #type ⇒ Object
Methods inherited from Expression
Methods included from SourceExtract::Usage
#adjust_src, #column, #column=, #end_column, #end_column=, #end_line, #end_line=, #line, #line=, #src, #src_extract
Constructor Details
#initialize(key, value, src) ⇒ MagicCommentExpression
Returns a new instance of MagicCommentExpression.
7 8 9 10 11 |
# File 'lib/codeminer/expressions/magic_comment_expression.rb', line 7 def initialize(key, value, src) @key = key @value = value @src = src end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/codeminer/expressions/magic_comment_expression.rb', line 5 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/codeminer/expressions/magic_comment_expression.rb', line 5 def value @value end |
Instance Method Details
#each ⇒ Object
17 18 19 |
# File 'lib/codeminer/expressions/magic_comment_expression.rb', line 17 def each [] end |
#type ⇒ Object
13 14 15 |
# File 'lib/codeminer/expressions/magic_comment_expression.rb', line 13 def type :magic_comment end |