Class: Pupil::Hashtag

Inherits:
Object
  • Object
show all
Defined in:
lib/pupil/schemes.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Hashtag) initialize(element)

A new instance of Hashtag



190
191
192
193
194
# File 'lib/pupil/schemes.rb', line 190

def initialize(element)
  @text = element.elements['text'].text()
  @start = element.attributes['start']
  @end = element.attributes['end']
end

Instance Attribute Details

- (Object) end (readonly)

Returns the value of attribute end



188
189
190
# File 'lib/pupil/schemes.rb', line 188

def end
  @end
end

- (Object) start (readonly)

Returns the value of attribute start



187
188
189
# File 'lib/pupil/schemes.rb', line 187

def start
  @start
end

- (Object) text (readonly)

Returns the value of attribute text



186
187
188
# File 'lib/pupil/schemes.rb', line 186

def text
  @text
end