Class: Rubyang::Database::SchemaTree::BitsType

Inherits:
Type
  • Object
show all
Defined in:
lib/rubyang/database/schema_tree.rb

Instance Attribute Summary

Attributes inherited from Type

#arg

Instance Method Summary collapse

Constructor Details

#initializeBitsType

Returns a new instance of BitsType.



149
150
151
152
# File 'lib/rubyang/database/schema_tree.rb', line 149

def initialize
  @arg = 'bits'
  @bit = Bit.new
end

Instance Method Details

#update_bit(arg) ⇒ Object



153
154
155
# File 'lib/rubyang/database/schema_tree.rb', line 153

def update_bit arg
  @bit.update arg
end

#valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


156
157
158
159
160
# File 'lib/rubyang/database/schema_tree.rb', line 156

def valid? value
  result = true
  result &&= @bit.valid? value
  result
end