Class: GemLint::Runner
- Inherits:
-
Object
- Object
- GemLint::Runner
- Defined in:
- lib/gem_lint/runner.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(filename) ⇒ Runner
constructor
A new instance of Runner.
- #to_s(type = :simple) ⇒ Object
Constructor Details
#initialize(filename) ⇒ Runner
Returns a new instance of Runner.
9 10 11 12 13 14 |
# File 'lib/gem_lint/runner.rb', line 9 def initialize(filename) raise ArgumentError, "'#{filename}' does not exist" unless File.file?(filename.to_s) @filename = filename init_vars end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
7 8 9 |
# File 'lib/gem_lint/runner.rb', line 7 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/gem_lint/runner.rb', line 7 def name @name end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
7 8 9 |
# File 'lib/gem_lint/runner.rb', line 7 def platform @platform end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
6 7 8 |
# File 'lib/gem_lint/runner.rb', line 6 def @tags end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
7 8 9 |
# File 'lib/gem_lint/runner.rb', line 7 def version @version end |
Instance Method Details
#to_s(type = :simple) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/gem_lint/runner.rb', line 16 def to_s(type = :simple) if type == :simple @tags.map { |t| "- #{t}"}.join("\n") else lines.join("\n") end end |