Class: Diakonos::CTag
Instance Attribute Summary (collapse)
-
- (Object) command
readonly
Returns the value of attribute command.
-
- (Object) file
readonly
Returns the value of attribute file.
-
- (Object) kind
readonly
Returns the value of attribute kind.
-
- (Object) rest
readonly
Returns the value of attribute rest.
Instance Method Summary (collapse)
- - (Object) ==(other)
-
- (CTag) initialize(file, command, kind, rest)
constructor
A new instance of CTag.
- - (Object) to_s
Constructor Details
- (CTag) initialize(file, command, kind, rest)
A new instance of CTag
6 7 8 9 10 11 |
# File 'lib/diakonos/ctag.rb', line 6 def initialize( file, command, kind, rest ) @file = file @command = command @kind = kind @rest = rest end |
Instance Attribute Details
- (Object) command (readonly)
Returns the value of attribute command
4 5 6 |
# File 'lib/diakonos/ctag.rb', line 4 def command @command end |
- (Object) file (readonly)
Returns the value of attribute file
4 5 6 |
# File 'lib/diakonos/ctag.rb', line 4 def file @file end |
- (Object) kind (readonly)
Returns the value of attribute kind
4 5 6 |
# File 'lib/diakonos/ctag.rb', line 4 def kind @kind end |
- (Object) rest (readonly)
Returns the value of attribute rest
4 5 6 |
# File 'lib/diakonos/ctag.rb', line 4 def rest @rest end |
Instance Method Details
- (Object) ==(other)
17 18 19 20 21 22 23 24 25 |
# File 'lib/diakonos/ctag.rb', line 17 def == ( other ) ( other and @file == other.file and @command == other.command and @kind == other.kind and @rest == other.rest ) end |
- (Object) to_s
13 14 15 |
# File 'lib/diakonos/ctag.rb', line 13 def to_s "#{@file}:#{@command} (#{@kind}) #{@rest}" end |