module Nova::Common::StarManagement::InstanceMethods
Instance methods.
Attributes
remote[W]
Public Class Methods
new(remote = nil)
click to toggle source
Checks for the correct platforms in initialization. If it’s not on the right platform, raises an error.
@raise [NoPlatformError] if it’s not available on the
platform.
Calls superclass method
# File lib/nova/common/star_management.rb, line 134 def initialize(remote = nil) @remote = (remote || self.remote).new super(@remote) end
Public Instance Methods
inspect()
click to toggle source
Cleans up the inspect a little bit.
@return [String]
# File lib/nova/common/star_management.rb, line 142 def inspect @_inspect ||= begin "#<" << self.class.inspect << (":0x%014x" % object_id) << ">" end end
remote()
click to toggle source
The remote this star is using. Can be set locally, but uses the global remote by default.
@see ClassMethods#remote
@!parse attr_reader :remote @return [Module]
# File lib/nova/common/star_management.rb, line 157 def remote @remote || self.class.remote end