Class: Fisk::Registers::Register

Inherits:
Struct
  • Object
show all
Defined in:
lib/fisk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



8
9
10
# File 'lib/fisk.rb', line 8

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/fisk.rb', line 8

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



8
9
10
# File 'lib/fisk.rb', line 8

def value
  @value
end

Instance Method Details

#unknown_label?Boolean

Returns:

  • (Boolean)


13
# File 'lib/fisk.rb', line 13

def unknown_label?; false; end

#works?(type) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/fisk.rb', line 9

def works? type
  type == self.name || type == self.type
end