Class: Rust::Omit

Inherits:
RustDatatype show all
Defined in:
lib/rust/core/types/datatype.rb

Class Method Summary collapse

Methods inherited from RustDatatype

#load_in_r_as, pull_priority, #r_hash, #r_mirror, #r_mirror_to

Class Method Details

.can_pull?(type, klass) ⇒ Boolean

Returns:

  • (Boolean)


121
122
123
# File 'lib/rust/core/types/datatype.rb', line 121

def self.can_pull?(type, klass)
    return (klass == "omit")
end

.pull_variable(variable, type, klass) ⇒ Object



125
126
127
# File 'lib/rust/core/types/datatype.rb', line 125

def self.pull_variable(variable, type, klass)
    return Rust["as.#{type}(#{variable})"]
end