|
|
|
|
@ -1,14 +1,11 @@
|
|
|
|
|
require_relative '../constants' |
|
|
|
|
require_relative 'arg_loader' |
|
|
|
|
|
|
|
|
|
module Squib |
|
|
|
|
# @api private |
|
|
|
|
module Args |
|
|
|
|
module Squib::Args |
|
|
|
|
|
|
|
|
|
class Paragraph |
|
|
|
|
include ArgLoader |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def self.parameters |
|
|
|
|
{ align: :left, |
|
|
|
|
str: 'Hello, World!', |
|
|
|
|
@ -42,7 +39,7 @@ module Squib
|
|
|
|
|
|
|
|
|
|
def validate_font(arg, _i) |
|
|
|
|
arg = @deck_font if arg == :use_set |
|
|
|
|
arg = DEFAULT_FONT if arg == :default |
|
|
|
|
arg = Squib::DEFAULT_FONT if arg == :default |
|
|
|
|
arg |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
@ -115,4 +112,3 @@ module Squib
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|