Class: Bparity::Formal::Domain
- Inherits:
-
Array
- Object
- Array
- Bparity::Formal::Domain
- Defined in:
- lib/bparity/formal/bounded.rb
Instance Attribute Summary collapse
-
#truncated ⇒ Object
readonly
Returns the value of attribute truncated.
Instance Method Summary collapse
-
#initialize(values, truncated: false) ⇒ Domain
constructor
A new instance of Domain.
Constructor Details
#initialize(values, truncated: false) ⇒ Domain
Returns a new instance of Domain.
11 12 13 14 |
# File 'lib/bparity/formal/bounded.rb', line 11 def initialize(values, truncated: false) super(values) @truncated = truncated end |
Instance Attribute Details
#truncated ⇒ Object (readonly)
Returns the value of attribute truncated.
9 10 11 |
# File 'lib/bparity/formal/bounded.rb', line 9 def truncated @truncated end |