Class: Sepa::StringWithConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/sepa/base.rb

Direct Known Subclasses

Max70Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s) ⇒ StringWithConstraint



6
7
8
# File 'lib/sepa/base.rb', line 6

def initialize s
  self.string = constrain s
end

Instance Attribute Details

#stringObject

Returns the value of attribute string.



4
5
6
# File 'lib/sepa/base.rb', line 4

def string
  @string
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/sepa/base.rb', line 10

def to_s
  self.string
end