Class: HDLRuby::High::Std::Board::HOOK

Inherits:
Struct
  • Object
show all
Defined in:
lib/HDLRuby/ui/hruby_board.rb

Overview

Class describing a hook (invisible display element).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hreadObject

Returns the value of attribute hread

Returns:

  • (Object)

    the current value of hread



87
88
89
# File 'lib/HDLRuby/ui/hruby_board.rb', line 87

def hread
  @hread
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



87
88
89
# File 'lib/HDLRuby/ui/hruby_board.rb', line 87

def id
  @id
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



87
88
89
# File 'lib/HDLRuby/ui/hruby_board.rb', line 87

def size
  @size
end

Instance Method Details

#to_htmlObject



88
89
90
# File 'lib/HDLRuby/ui/hruby_board.rb', line 88

def to_html
  return "<div id=\"#{self.id}\" data-value=\"0\"/>\\n"
end