Class: String
- Inherits:
-
Object
show all
- Defined in:
- lib/wukong/extensions/blank.rb,
lib/wukong/schema.rb,
lib/wukong/schema.rb,
lib/wukong/schema.rb,
lib/wukong/schema.rb
Overview
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
64
|
# File 'lib/wukong/schema.rb', line 64
def to_avro() 'string' end
|
35
|
# File 'lib/wukong/schema.rb', line 35
def to_pig() 'chararray' end
|
10
|
# File 'lib/wukong/schema.rb', line 10
def to_sql() 'VARCHAR(255) CHARACTER SET ASCII' end
|
Instance Method Details
Strips out whitespace then tests if the string is empty.
"".blank?
" ".blank?
" hey ho ".blank?
90
91
92
|
# File 'lib/wukong/extensions/blank.rb', line 90
def blank?
strip.empty?
end
|
68
|
# File 'lib/wukong/schema.rb', line 68
def to_avro() self.to_s ; end
|
39
|
# File 'lib/wukong/schema.rb', line 39
def to_pig() self.to_s ; end
|
22
|
# File 'lib/wukong/schema.rb', line 22
def to_sql() self ; end
|