Class: Bwoken::Coffeescript::GithubImportString
- Inherits:
-
ImportString
- Object
- ImportString
- Bwoken::Coffeescript::GithubImportString
- Defined in:
- lib/bwoken/coffeescript/github_import_string.rb
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#repo_name ⇒ Object
readonly
Returns the value of attribute repo_name.
Instance Method Summary collapse
-
#initialize(string) ⇒ GithubImportString
constructor
A new instance of GithubImportString.
- #parse ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(string) ⇒ GithubImportString
Returns a new instance of GithubImportString.
9 10 11 12 |
# File 'lib/bwoken/coffeescript/github_import_string.rb', line 9 def initialize string @string = string parse_parts end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
7 8 9 |
# File 'lib/bwoken/coffeescript/github_import_string.rb', line 7 def file_path @file_path end |
#repo_name ⇒ Object (readonly)
Returns the value of attribute repo_name.
7 8 9 |
# File 'lib/bwoken/coffeescript/github_import_string.rb', line 7 def repo_name @repo_name end |
Instance Method Details
#parse ⇒ Object
14 15 16 |
# File 'lib/bwoken/coffeescript/github_import_string.rb', line 14 def parse ensure_github end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/bwoken/coffeescript/github_import_string.rb', line 18 def to_s %Q|#import "#{repo_path}/#{file_path}"| end |