Class: Reggae::Register

Inherits:
Struct
  • Object
show all
Includes:
Visitable
Defined in:
lib/reggae/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Visitable

#accept

Instance Attribute Details

#addressObject

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



58
59
60
# File 'lib/reggae/ast.rb', line 58

def address
  @address
end

#bitfieldsObject

Returns the value of attribute bitfields

Returns:

  • (Object)

    the current value of bitfields



58
59
60
# File 'lib/reggae/ast.rb', line 58

def bitfields
  @bitfields
end

#bitsObject

Returns the value of attribute bits

Returns:

  • (Object)

    the current value of bits



58
59
60
# File 'lib/reggae/ast.rb', line 58

def bits
  @bits
end

#initObject

Returns the value of attribute init

Returns:

  • (Object)

    the current value of init



58
59
60
# File 'lib/reggae/ast.rb', line 58

def init
  @init
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



58
59
60
# File 'lib/reggae/ast.rb', line 58

def name
  @name
end

#samplingObject

Returns the value of attribute sampling

Returns:

  • (Object)

    the current value of sampling



58
59
60
# File 'lib/reggae/ast.rb', line 58

def sampling
  @sampling
end

#writableObject

Returns the value of attribute writable

Returns:

  • (Object)

    the current value of writable



58
59
60
# File 'lib/reggae/ast.rb', line 58

def writable
  @writable
end

Instance Method Details

#bit(n) ⇒ Object



60
61
62
# File 'lib/reggae/ast.rb', line 60

def bit(n)
  @bits.find{|bit| bit.position==n}
end