Class: CodeMiner::Colon3Expression
- Inherits:
-
Expression
- Object
- Expression
- CodeMiner::Colon3Expression
- Defined in:
- lib/codeminer/expressions/colon3_expression.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Attributes inherited from Expression
#args, #block, #delimiter, #src, #token
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(token, src) ⇒ Colon3Expression
constructor
A new instance of Colon3Expression.
- #type ⇒ Object
- #value ⇒ 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(token, src) ⇒ Colon3Expression
Returns a new instance of Colon3Expression.
7 8 9 10 |
# File 'lib/codeminer/expressions/colon3_expression.rb', line 7 def initialize(token, src) @token = token @src = src end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/codeminer/expressions/colon3_expression.rb', line 5 def body @body end |
Instance Method Details
#each ⇒ Object
20 21 22 |
# File 'lib/codeminer/expressions/colon3_expression.rb', line 20 def each [] end |
#type ⇒ Object
12 13 14 |
# File 'lib/codeminer/expressions/colon3_expression.rb', line 12 def type :colon3 end |
#value ⇒ Object
16 17 18 |
# File 'lib/codeminer/expressions/colon3_expression.rb', line 16 def value token.value end |