Class: GitMeta::Scanner
- Inherits:
-
Object
- Object
- GitMeta::Scanner
- Defined in:
- lib/git_meta.rb
Constant Summary collapse
- REGEX =
/(\S+):\s*(.+)$/
Instance Attribute Summary collapse
-
#info ⇒ Object
Returns the value of attribute info.
Instance Method Summary collapse
- #==(comrade) ⇒ Object
-
#initialize(text) ⇒ Scanner
constructor
A new instance of Scanner.
Constructor Details
Instance Attribute Details
#info ⇒ Object
Returns the value of attribute info.
7 8 9 |
# File 'lib/git_meta.rb', line 7 def info @info end |
Instance Method Details
#==(comrade) ⇒ Object
18 19 20 |
# File 'lib/git_meta.rb', line 18 def ==(comrade) info == comrade.info end |