Class: ScrewServer::FixtureFile
- Inherits:
-
Object
- Object
- ScrewServer::FixtureFile
- Defined in:
- lib/screw_server/fixture_file.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
- #filename ⇒ Object
-
#initialize(name) ⇒ FixtureFile
constructor
A new instance of FixtureFile.
Constructor Details
#initialize(name) ⇒ FixtureFile
Returns a new instance of FixtureFile.
9 10 11 |
# File 'lib/screw_server/fixture_file.rb', line 9 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/screw_server/fixture_file.rb', line 3 def name @name end |
Class Method Details
.base_dir ⇒ Object
5 6 7 |
# File 'lib/screw_server/fixture_file.rb', line 5 def self.base_dir File.join(Base.spec_base_dir, "fixtures") end |
Instance Method Details
#filename ⇒ Object
13 14 15 |
# File 'lib/screw_server/fixture_file.rb', line 13 def filename "#{Base.spec_base_dir}/fixtures/#{name}.html" end |