Class: Yoda::Store::Objects::Library::Std
- Inherits:
-
Object
- Object
- Yoda::Store::Objects::Library::Std
show all
- Includes:
- Serializable
- Defined in:
- lib/yoda/store/objects/library/std.rb
Defined Under Namespace
Classes: Connected
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
#==, #derive, #eql?, #hash, included, #to_json
Constructor Details
#initialize(version: RUBY_VERSION) ⇒ Std
Returns a new instance of Std.
17
18
19
|
# File 'lib/yoda/store/objects/library/std.rb', line 17
def initialize(version: RUBY_VERSION)
@version = version
end
|
Instance Attribute Details
#version ⇒ String
9
10
11
|
# File 'lib/yoda/store/objects/library/std.rb', line 9
def version
@version
end
|
Class Method Details
.current_version ⇒ Core
12
13
14
|
# File 'lib/yoda/store/objects/library/std.rb', line 12
def self.current_version
new
end
|
Instance Method Details
#id ⇒ Object
25
26
27
|
# File 'lib/yoda/store/objects/library/std.rb', line 25
def id
name
end
|
#name ⇒ Object
29
30
31
|
# File 'lib/yoda/store/objects/library/std.rb', line 29
def name
'std'
end
|
#to_h ⇒ Object
21
22
23
|
# File 'lib/yoda/store/objects/library/std.rb', line 21
def to_h
{ version: version }
end
|
#with_project_connection(**kwargs) ⇒ Connected
38
39
40
|
# File 'lib/yoda/store/objects/library/std.rb', line 38
def with_project_connection(**kwargs)
self.class.const_get(:Connected).new(self, **kwargs)
end
|