Class: TrangeFrange::Shaper
- Inherits:
-
Struct
- Object
- Struct
- TrangeFrange::Shaper
- Defined in:
- lib/trange_frange/shaper.rb
Constant Summary collapse
- OPTIONS =
[:bald, :squeeze, :show_fraction]
Instance Attribute Summary collapse
-
#fraction ⇒ Object
Returns the value of attribute fraction.
-
#options ⇒ Object
Returns the value of attribute options.
-
#words ⇒ Object
Returns the value of attribute words.
Instance Method Summary collapse
Instance Attribute Details
#fraction ⇒ Object
Returns the value of attribute fraction
4 5 6 |
# File 'lib/trange_frange/shaper.rb', line 4 def fraction @fraction end |
#options ⇒ Object
Returns the value of attribute options
4 5 6 |
# File 'lib/trange_frange/shaper.rb', line 4 def @options end |
#words ⇒ Object
Returns the value of attribute words
4 5 6 |
# File 'lib/trange_frange/shaper.rb', line 4 def words @words end |
Instance Method Details
#shape! ⇒ Object
7 8 9 |
# File 'lib/trange_frange/shaper.rb', line 7 def shape! OPTIONS.each { |option| send(option) if [option] } and return words end |