Class: ODDB::Text::ImageLink

Inherits:
Object
  • Object
show all
Includes:
OddbYaml
Defined in:
src/model/text.rb,
ext/export/src/oddb_yaml.rb

Constant Summary

EXPORT_PROPERTIES =
[
  '@src'
]

Constants included from OddbYaml

EXPORT_PROPERTIES, YAML_URI

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from OddbYaml

#to_yaml_properties, #to_yaml_type

Instance Attribute Details

- (Object) src

Returns the value of attribute src



12
13
14
# File 'src/model/text.rb', line 12

def src
  @src
end

Instance Method Details

- (Object) attributes



13
14
15
# File 'src/model/text.rb', line 13

def attributes
  { 'src' =>  @src }
end

- (Object) clean!



16
17
# File 'src/model/text.rb', line 16

def clean!
end

- (Boolean) empty?

Returns:

  • (Boolean)


18
19
20
# File 'src/model/text.rb', line 18

def empty?
  @src.nil?
end

- (Object) gsub!(*args, &block)



21
22
23
# File 'src/model/text.rb', line 21

def gsub! *args, &block
  @src.gsub! *args, &block
end

- (Boolean) preformatted?

Returns:

  • (Boolean)


24
25
26
# File 'src/model/text.rb', line 24

def preformatted?
  true
end

- (Object) to_s(opts = {}) Also known as: text



27
# File 'src/model/text.rb', line 27

def to_s opts={}